Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
O2OA
Commits
6d7b3c68
Commit
6d7b3c68
authored
3 years ago
by
o2null
Browse files
Options
Download
Plain Diff
Merge branch 'fix/sso_master' into 'master'
修复sso encrypt See merge request o2oa/o2oa!6099
parents
d44de317
1bbc335c
6.4.7
6.4.6
6.4.5
6.4.4
6.4.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/sso/ActionGetEncrypt.java
+1
-2
...n/assemble/authentication/jaxrs/sso/ActionGetEncrypt.java
with
1 addition
and
2 deletions
+1
-2
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/sso/ActionGetEncrypt.java
+
1
-
2
View file @
6d7b3c68
...
...
@@ -40,8 +40,7 @@ class ActionGetEncrypt extends BaseAction {
throw
new
ExceptionClientNotExist
(
client
);
}
String
str
=
credential
+
TOKEN_SPLIT
+
new
Date
().
getTime
();
byte
[]
bs
=
Crypto
.
encrypt
(
str
.
getBytes
(
DefaultCharset
.
charset
),
key
.
getBytes
());
String
token
=
new
String
(
Base64
.
encodeBase64
(
bs
),
DefaultCharset
.
charset
);
String
token
=
Crypto
.
encrypt
(
str
,
key
);
Wo
wo
=
new
Wo
();
wo
.
setToken
(
token
);
result
.
setData
(
wo
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help