FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JWTConnect-Python-OidcMsg/src/oidcmsg/__init__.py at develop · IdentityPython/JWTConnect-Python-OidcMsg · GitHub
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
IdentityPython
JWTConnect-Python-OidcMsg
Repository navigation
Code
Issues
3
(3)
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JWTConnect-Python-OidcMsg
/
src
/
oidcmsg
/
__init__.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (26 loc) · 722 Bytes
Breadcrumbs
JWTConnect-Python-OidcMsg
/
src
/
oidcmsg
/
__init__.py
Copy path
File metadata and controls
34 lines (26 loc) · 722 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
__author__
=
"Roland Hedberg"
__version__
=
"1.6.0"
import
os
from
typing
import
Dict
VERIFIED_CLAIM_PREFIX
=
"__verified"
def
verified_claim_name
(
claim
):
return
"{}_{}"
.
format
(
VERIFIED_CLAIM_PREFIX
,
claim
)
def
proper_path
(
path
):
"""
Clean up the path specification so it looks like something I could use.
"./" <path> "/"
"""
if
path
.
startswith
(
"./"
):
pass
elif
path
.
startswith
(
"/"
):
path
=
".%s"
%
path
elif
path
.
startswith
(
"."
):
while
path
.
startswith
(
"."
):
path
=
path
[
1
:]
if
path
.
startswith
(
"/"
):
path
=
".%s"
%
path
else
:
path
=
"./%s"
%
path
if
not
path
.
endswith
(
"/"
):
path
+=
"/"
return
path
Back
|
FazBrowse Home
|
New Git URL