CPub.Web.Authentication.RegistrationRequest (CPub v0.3.0) View Source

A request to register with an external identiy provider.

This is a temporary entitiy that only exists while the user has authenticated with external provider but not created an associated local user yet.

Link to this section Summary

Link to this section Types

Specs

t() :: %CPub.Web.Authentication.RegistrationRequest{
  __meta__: term(),
  external_id: String.t(),
  id: String.t(),
  provider: String.t(),
  site: String.t(),
  username: String.t()
}

Link to this section Functions

Link to this function

create(site, provider, external_id, username)

View Source

Specs

create(String.t(), String.t(), String.t(), String.t()) ::
  {:ok, t()} | {:error, any()}

Specs

get(String.t()) :: {:ok, t()} | {:error, any()}