View Source Boruta.Oauth.IntrospectResponse (Boruta core v2.1.0)

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

Link to this section Summary

Link to this section Types

Specs

t() :: %Boruta.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()
}

Link to this section Functions

Specs

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

Specs

from_token(token :: Boruta.Oauth.Token.t()) :: introspect_response :: t()