Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sso
Commits
1e72ce36
Commit
1e72ce36
authored
Jul 24, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a248c13b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
OAuth2Api.java
src/main/java/com/egolm/sso/api/OAuth2Api.java
+2
-2
OAuthToken.java
src/main/java/com/egolm/sso/api/OAuthToken.java
+1
-1
No files found.
src/main/java/com/egolm/sso/api/OAuth2Api.java
View file @
1e72ce36
...
...
@@ -32,7 +32,7 @@ public interface OAuth2Api {
response
.
sendRedirect
(
oauthResponse
.
getLocationUri
());
}
default
Access
Token
getToken
(
HttpServletRequest
request
)
throws
OAuthProblemException
,
OAuthSystemException
{
default
OAuth
Token
getToken
(
HttpServletRequest
request
)
throws
OAuthProblemException
,
OAuthSystemException
{
OAuthConfig
config
=
this
.
getOAuthConfig
();
OAuthAuthzResponse
oauthAuthzResponse
=
OAuthAuthzResponse
.
oauthCodeAuthzResponse
(
request
);
String
code
=
oauthAuthzResponse
.
getCode
();
...
...
@@ -50,7 +50,7 @@ public interface OAuth2Api {
Long
expiresIn
=
oAuthResponse
.
getExpiresIn
();
String
idToken
=
oAuthResponse
.
getParam
(
"id_token"
);
String
tokenType
=
oAuthResponse
.
getTokenType
();
AccessToken
tokenObj
=
new
Access
Token
();
OAuthToken
tokenObj
=
new
OAuth
Token
();
tokenObj
.
setAccessToken
(
accessToken
);
tokenObj
.
setRefreshToken
(
refreshToken
);
tokenObj
.
setIdToken
(
idToken
);
...
...
src/main/java/com/egolm/sso/api/
Access
Token.java
→
src/main/java/com/egolm/sso/api/
OAuth
Token.java
View file @
1e72ce36
package
com
.
egolm
.
sso
.
api
;
public
class
Access
Token
{
public
class
OAuth
Token
{
private
String
accessToken
;
private
String
refreshToken
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment