-
Notifications
You must be signed in to change notification settings - Fork 104
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
API to get new refresh token for user #132
Conversation
/lgtm |
/hold |
c8ae249
to
bf1a008
Compare
bf1a008
to
cd34518
Compare
cd34518
to
d69c3de
Compare
d69c3de
to
577d66d
Compare
b0b8446
to
c38c2df
Compare
/lgtm |
c38c2df
to
1dbb1e7
Compare
/lgtm |
api/pkg/service/user/user.go
Outdated
// Refreshes the refresh token of User | ||
func (s *service) NewRefreshToken(ctx context.Context, p *user.NewRefreshTokenPayload) (*user.NewRefreshTokenResult, error) { | ||
|
||
user, err := s.User(ctx) |
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.
I think from line 135 to 151 we can create a common function and use this from both access token and refresh token since that part of code is duplicated
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.
+1 rest looks good
1dbb1e7
to
7da2684
Compare
This adds an api to get new refresh token for user using existing refresh token before it expires. Existing refresh token must be passed in header as Authorization. Signed-off-by: Shivam Mukhade <smukhade@redhat.com>
7da2684
to
8df86e8
Compare
/lgtm |
/approve |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: PuneetPunamiya The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This adds implementation for API to get a new refresh token for user. This
requires existing user refresh token to be passed to get a new access token.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.