Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.OAuth.Authorization View Source
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
create_authorization(app, user, scopes \\ nil)
View Sourcecreate_authorization( Pleroma.Web.OAuth.App.t(), Pleroma.User.t() | %{}, [String.t()] | nil ) :: {:ok, Pleroma.Web.OAuth.Authorization.t()} | {:error, Changeset.t()}
Link to this function
create_changeset(attrs \\ %{})
View Sourcecreate_changeset(map()) :: Changeset.t()
Link to this function
delete_user_authorizations(user)
View Sourcedelete_user_authorizations(Pleroma.User.t()) :: {integer(), any()}
Link to this function
get_by_token(app, token)
View Sourceget_by_token(Pleroma.Web.OAuth.App.t(), String.t()) :: {:ok, t()} | {:error, :not_found}
gets auth for app by token
Link to this function
use_changeset(auth, params)
View Sourceuse_changeset(Authtorizatiton.t(), map()) :: Changeset.t()
Link to this function
use_token(auth)
View Sourceuse_token(Pleroma.Web.OAuth.Authorization.t()) :: {:ok, Pleroma.Web.OAuth.Authorization.t()} | {:error, Changeset.t()} | {:error, String.t()}