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
422e9925
Commit
422e9925
authored
Aug 07, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
c9ebd651
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
OAuthApi.java
src/main/java/com/egolm/sso/oauth/OAuthApi.java
+5
-0
No files found.
src/main/java/com/egolm/sso/oauth/OAuthApi.java
View file @
422e9925
...
@@ -147,6 +147,11 @@ public interface OAuthApi {
...
@@ -147,6 +147,11 @@ public interface OAuthApi {
builder
.
setClientId
(
config
.
getClientId
());
builder
.
setClientId
(
config
.
getClientId
());
builder
.
setClientSecret
(
config
.
getClientSecret
());
builder
.
setClientSecret
(
config
.
getClientSecret
());
OAuthClientRequest
oauthClientRequest
=
builder
.
buildQueryMessage
();
OAuthClientRequest
oauthClientRequest
=
builder
.
buildQueryMessage
();
logger
.
debug
(
"oauth refresh request: "
+
oauthClientRequest
.
getLocationUri
());
logger
.
debug
(
"oauth refresh headers: "
+
JSON
.
toJSONString
(
oauthClientRequest
.
getHeaders
()));
logger
.
debug
(
"oauth refresh body: "
+
JSON
.
toJSONString
(
oauthClientRequest
.
getBody
()));
OAuthClient
oAuthClient
=
new
OAuthClient
(
new
URLConnectionClient
());
OAuthClient
oAuthClient
=
new
OAuthClient
(
new
URLConnectionClient
());
OAuthJSONAccessTokenResponse
oAuthResponse
=
oAuthClient
.
accessToken
(
oauthClientRequest
,
OAuth
.
HttpMethod
.
POST
);
OAuthJSONAccessTokenResponse
oAuthResponse
=
oAuthClient
.
accessToken
(
oauthClientRequest
,
OAuth
.
HttpMethod
.
POST
);
String
accessToken
=
oAuthResponse
.
getAccessToken
();
String
accessToken
=
oAuthResponse
.
getAccessToken
();
...
...
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