Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
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
xianyang
financial-system
Commits
8dfc3210
Commit
8dfc3210
authored
Apr 04, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化合并
parent
510b29c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
financial-system.iml
.idea/financial-system.iml
+1
-1
token_verify.py
libs/token_verify.py
+0
-2
No files found.
.idea/financial-system.iml
View file @
8dfc3210
...
...
@@ -6,7 +6,7 @@
<excludeFolder
url=
"file://$MODULE_DIR$/fs-env"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/venv"
/>
</content>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.8 (financial
_
system)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.8 (financial
-
system)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
<component
name=
"PyDocumentationSettings"
>
...
...
libs/token_verify.py
View file @
8dfc3210
import
datetime
import
json
import
time
from
asyncio.log
import
logger
from
jose.exceptions
import
JWEError
,
ExpiredSignatureError
from
sqlalchemy.orm
import
Session
from
fastapi
import
Depends
,
HTTPException
,
status
,
FastAPI
from
fastapi.security
import
OAuth2PasswordBearer
from
jose
import
jwt
,
JWTError
from
werkzeug
import
Request
from
app
import
get_db
from
app.api.role.crud
import
get_id_to_authority
...
...
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