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

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

Summary

Types

@type 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()
}

Functions

@spec 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()
  }
@spec from_token(token :: Boruta.Oauth.Token.t()) :: introspect_response :: t()