Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handling of bearer token.
  • Loading branch information
Licenser committed Feb 16, 2015
1 parent f86aa73 commit b5f8859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wiggle/src/wiggle_oauth_auth.erl
Expand Up @@ -88,7 +88,7 @@ do_basic_auth(AuthReq, Req) ->

check_token(AuthReq = #auth_req{bearer = Bearer}, Req) ->
case ls_oauth:verify_access_token(Bearer) of
{ok, Context} ->
{ok, {_, Context}} ->
case proplists:get_value(<<"resource_owner">>, Context) of
undefined ->
wiggle_oauth:json_error_response(access_denied, Req);
Expand Down

0 comments on commit b5f8859

Please sign in to comment.