Backplane.Oauth.IntrospectResponse (backplane_oauth v1.10.77)

Copy Markdown View Source

Response returned in case of introspection request success. Provides mandatory data needed to respond to token introspection.

Summary

Types

t()

@type t() :: %Backplane.Oauth.IntrospectResponse{
  active: boolean(),
  client_id: String.t(),
  exp: integer(),
  iat: integer(),
  iss: String.t(),
  private_key: String.t(),
  scope: String.t(),
  sub: String.t(),
  username: String.t()
}

Functions

from_error(_)

@spec from_error(error :: Backplane.Oauth.Error.t()) ::
  introspect_response :: %Backplane.Oauth.IntrospectResponse{
    active: false,
    client_id: term(),
    exp: term(),
    iat: term(),
    iss: term(),
    private_key: term(),
    scope: term(),
    sub: term(),
    username: term()
  }

from_token(token)

@spec from_token(token :: Backplane.Oauth.Token.t()) :: introspect_response :: t()