Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hiboo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hiboo
Commits
0a89d64e
Commit
0a89d64e
authored
4 years ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Insert kid in jwks
parent
8da4048a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!20
Add 'remember me' button
Pipeline
#1372
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hiboo/sso/oidc.py
+4
-2
4 additions, 2 deletions
hiboo/sso/oidc.py
with
4 additions
and
2 deletions
hiboo/sso/oidc.py
+
4
−
2
View file @
0a89d64e
...
...
@@ -16,6 +16,7 @@ from hiboo import models, utils, profile, security
import
flask
import
time
import
inspect
import
uuid
RSA_KEY_LENGTH
=
2048
...
...
@@ -31,9 +32,10 @@ def fill_service(service):
)
if
"
jwt_public_key
"
not
in
service
.
config
:
key
,
public
,
_
=
generate_rsa_certificate
(
service
.
uuid
)
kid
=
{
"
kid
"
:
str
(
uuid
.
uuid4
())}
service
.
config
.
update
(
jwt_key
=
jwk
.
dumps
(
key
,
kty
=
"
RSA
"
),
jwt_public_key
=
jwk
.
dumps
(
public
,
kty
=
"
RSA
"
),
jwt_key
=
{
**
kid
,
**
jwk
.
dumps
(
key
,
kty
=
"
RSA
"
)
}
,
jwt_public_key
=
{
**
kid
,
**
jwk
.
dumps
(
public
,
kty
=
"
RSA
"
)
}
,
jwt_alg
=
"
RS256
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment