Skip to content

Commit

Permalink
Update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
plux-kivra committed Jan 16, 2018
1 parent 96a1969 commit 9ee5b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/oauth2.erl
Expand Up @@ -76,7 +76,7 @@
invalid_request | invalid_authorization | invalid_scope |
unauthorized_client | unsupported_grant_type |
unsupported_response_type | server_error |
temporarily_unavailable.
temporarily_unavailable | atom().

%%%_* Code =============================================================
%%%_ * API -------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/oauth2_backend.erl
Expand Up @@ -32,7 +32,7 @@
%% @doc Authenticates a combination of username and password.
%% Returns the resource owner identity if the credentials are valid.
-callback authenticate_user(user(), appctx()) -> {ok, {appctx(), term()}}
| {error, notfound | badpass}.
| {error, atom()}.

%% @doc Authenticates a client's credentials for a given scope.
-callback authenticate_client(client(), appctx()) -> {ok, {appctx(), client()}}
Expand Down

0 comments on commit 9ee5b18

Please sign in to comment.