Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
周健威
rs-cloud-platform
Commits
e98f6282
Commit
e98f6282
authored
Aug 23, 2024
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加数据中心验证代码
parent
e2889f0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
AuthController.java
...thub/wxiaoqi/security/auth/controller/AuthController.java
+17
-3
No files found.
ace-auth/ace-auth-server/src/main/java/com/github/wxiaoqi/security/auth/controller/AuthController.java
View file @
e98f6282
...
...
@@ -63,6 +63,20 @@ public class AuthController {
return
new
ObjectRestResponse
<
String
>().
data
(
token
);
}
@RequestMapping
(
value
=
"maxkeyLogin"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
String
>
maxkeyLogin
()
throws
Exception
{
String
callback
=
"https://gdxm.upyuns.com/oauth20callback"
;
OAuthService
service
=
new
ServiceBuilder
()
.
provider
(
MaxkeyApi20
.
class
)
.
apiKey
(
"1024011282958778368"
)
.
apiSecret
(
"JF17MjIwODIwMjQxNDU2MjA2OTkOJS"
)
.
callback
(
callback
)
.
build
();
Token
EMPTY_TOKEN
=
null
;
String
authorizationUrl
=
service
.
getAuthorizationUrl
(
EMPTY_TOKEN
);
return
ObjectRestResponse
.
succ
(
authorizationUrl
+
"&approval_prompt=auto"
);
}
@RequestMapping
(
value
=
"tokenMaxkey"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
String
>
createAuthenticationTokenMaxkey
(
String
code
,
String
accessToken
,
HttpServletRequest
request
)
throws
Exception
{
...
...
@@ -77,11 +91,11 @@ public class AuthController {
if
(
service
==
null
){
// String callback="https://gdxm.upyuns.com/oauth20callback";
String
callback
=
"https://gdxm.upyuns.com/
demo-oauth/oauth20callback.jsp
"
;
String
callback
=
"https://gdxm.upyuns.com/
oauth20callback
"
;
service
=
new
ServiceBuilder
()
.
provider
(
MaxkeyApi20
.
class
)
.
apiKey
(
"
b32834accb544ea7a9a09dcae4a36403
"
)
.
apiSecret
(
"
E9UO53P3JH52aQAcnLP2FlLv8olKIB7u
"
)
.
apiKey
(
"
1024011282958778368
"
)
.
apiSecret
(
"
JF17MjIwODIwMjQxNDU2MjA2OTkOJS
"
)
.
callback
(
callback
)
.
build
();
}
...
...
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