Skip to content

Commit

Permalink
Merge pull request #41 from indigo-dc/feature/refresh_token
Browse files Browse the repository at this point in the history
rename retrieve_access_token to retrieve_fresh_token
  • Loading branch information
bwegh authored Aug 3, 2016
2 parents 9747933 + a6f42a7 commit 6f7c6be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/oidcc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
-export([parse_and_validate_token/3]).
-export([retrieve_user_info/2]).
-export([retrieve_user_info/3]).
-export([retrieve_access_token/2]).
-export([retrieve_access_token/3]).
-export([retrieve_fresh_token/2]).
-export([retrieve_fresh_token/3]).
-export([introspect_token/2]).
-export([register_module/1]).

Expand Down Expand Up @@ -220,10 +220,11 @@ retrieve_user_info(Token, OpenIdProvider, Subject) ->
retrieve_user_info(Token, Config, Subject).


retrieve_access_token(RefreshToken, OpenIdProvider) ->
retrieve_access_token(RefreshToken, [], OpenIdProvider).

retrieve_access_token(RefreshToken, Scopes, OpenIdProvider) ->
retrieve_fresh_token(RefreshToken, OpenIdProvider) ->
retrieve_fresh_token(RefreshToken, [], OpenIdProvider).

retrieve_fresh_token(RefreshToken, Scopes, OpenIdProvider) ->
{ok, Config} = get_openid_provider_info(OpenIdProvider),
BodyQs0 = [
{<<"refresh_token">>, RefreshToken},
Expand Down

0 comments on commit 6f7c6be

Please sign in to comment.