-
Notifications
You must be signed in to change notification settings - Fork 126
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
oAuth token refresh #4
Conversation
cc @longnguyen11288 |
Ive added .travis.yml to master if you want to rebase in that into this branch instead of commiting it here :) |
c78214b
to
4433f3b
Compare
@simonjohansson have removed the travis related changes from this branch, have cherrypicked the README change onto master. |
Coolio! Ill take a look at this PR. |
4433f3b
to
da150b3
Compare
When doing a godep save it pulls in a dep that is not in Godeps.json
|
I'm only able to reproduce the above Godeps.json diff when checking out the current master |
@rkoster
|
After following the above steps there where still no changes on my machine |
fakeUAAServer is great! |
Maybe better to wait 0s instead of 3s to speed up the tests?
|
| After following the above steps there where still no changes on my machine How weird, probably my machine that have some issues then. |
"token_type": "bearer", | ||
"access_token": "foobar" + strconv.Itoa(count), | ||
"refresh_token": "barfoo", | ||
"expires_in": 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you talking about this time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with regard to the expires_in
time, the token will be seen as expired before the 3 seconds have elapsed. Since an expiryDelta is taken into account.
Besides my missunderstanding of the test case, and my weird environment on my machine this looks great! What is the rules in this repo, more than one review to merge? |
cc @longnguyen11288 |
I think one person reviewing is fine. Nothing to strict. @simonjohansson |
@longnguyen11288 ok, coolio. |
This PR uses the oauth2 lib for getting the UAA token.
This comes with the added benefit of support for refresh tokens.