Rivet.Auth.Signin.Google.KeyManager (rivet_ident v4.0.0)

Copy Markdown View Source

This module runs as a separate process which keeps google's oauth public certs 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 certs for google

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_certs()

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

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

parse_rfc1123_datetime(value)

start_link(opts)