Rivet.Auth.Signin.Google.KeyManager (rivet_ident v3.5.0)

View Source

This module runs as a separate process which keeps google's oauth public keys current, as they change weekly. This process inspects the expiration date (which google says should be correct) and updates at least by then, but does not wait longer than 1 day.

Summary

Functions

Returns a specification to start this module under a supervisor.

External interface to request a current copy of the keys for google

Callback implementation for GenServer.init/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_keys()

External interface to request a current copy of the keys for google

iex> dict = Rivet.Auth.Signin.Google.KeyManager.get_keys() iex> is_map(dict) true

init(state)

Callback implementation for GenServer.init/1.

start_link(state)