Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Commits
a335b26d
Commit
a335b26d
authored
2 years ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
add forced type for mypy
parent
427d89e8
No related branches found
No related tags found
1 merge request
!44
Feature/comp 208 google o auth poc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compendium_v2/auth/__init__.py
+2
-2
2 additions, 2 deletions
compendium_v2/auth/__init__.py
with
2 additions
and
2 deletions
compendium_v2/auth/__init__.py
+
2
−
2
View file @
a335b26d
from
flask
import
Flask
from
authlib.integrations.flask_client
import
OAuth
,
FlaskOAuth2App
# type: ignore
oauth
=
None
oauth
=
None
# type: OAuth
def
setup_oauth
(
app
:
Flask
,
oidc_config
:
dict
):
...
...
@@ -29,4 +29,4 @@ def setup_oauth(app: Flask, oidc_config: dict):
def
get_client
()
->
FlaskOAuth2App
:
return
oauth
.
create_client
(
'
provider
'
)
# type: ignore
return
oauth
.
create_client
(
'
provider
'
)
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