Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross client refresh tokens #465

Merged
merged 2 commits into from
Jun 14, 2016

Conversation

bobbyrullo
Copy link
Contributor

Refresh clients can now be used to do cross-client auth.

@bobbyrullo bobbyrullo force-pushed the cross_client_refresh_tokens branch 2 times, most recently from 3e2ac94 to 04e4e2c Compare June 10, 2016 23:57
@@ -147,8 +147,10 @@ func makeUserAPITestFixtures() *userAPITestFixtures {
}

refreshRepo := db.NewRefreshTokenRepo(dbMap)
fmt.Println("DEFAULT: ", oidc.DefaultScope)
Copy link
Contributor

@ericchiang ericchiang Jun 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover print statement?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@bobbyrullo bobbyrullo force-pushed the cross_client_refresh_tokens branch 3 times, most recently from 6e9521d to e560aab Compare June 13, 2016 23:16
@ericchiang
Copy link
Contributor

lgtm (pending a squash)

Bobby Rullo added 2 commits June 14, 2016 14:14
A refresh request must fail if it asks for scopes that were not
originally granted when the refresh token was obtained.

This Commit:

* changes repo to store scopes with tokens
* changes repo interface signatures so that scopes can be stored and
  verified
* updates dependent code to pass along scopes
Before,  this logic was only in the OIDCServer.CodeToken() method; now it has been
pulled out so that other paths, like OIDCServer.RefreshToken() can use
it.

The net affect, is that now refresh tokens can be used to get
cross-client authenticated ID Tokens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants