Skip to content

Commit

Permalink
change use of is_external
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Jul 12, 2024
1 parent d90e0f1 commit fded771
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pypnusershub/auth/providers/cas_inpn_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CasAuthentificationError(GeonatureApiError):
class AuthenficationCASINPN(Authentication):
name = "CAS_INPN_PROVIDER"
label = "INPN"
is_external = False
is_external = True
logo = "<i class='fa fa-paw' aria-hidden='true'></i>"

@property
Expand Down
2 changes: 1 addition & 1 deletion src/pypnusershub/auth/providers/github_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class GitHubAuthProvider(Authentication):
id_provider = "github"
label = "GitHub"
is_external = False
is_external = True
login_url = "http://127.0.0.1:8000/auth/login/github"
logout_url = ""
logo = '<i class="fa fa-github"></i>'
Expand Down
2 changes: 1 addition & 1 deletion src/pypnusershub/auth/providers/openid_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OpenIDProvider(Authentication):

name = "OPENID_PROVIDER_CONFIG"
logo = '<i class="fa fa-sign-in"></i>'
is_external = False
is_external = True
"""
Name of the fields in the OpenID token that contains the groups info
"""
Expand Down
1 change: 1 addition & 0 deletions src/pypnusershub/auth/providers/usershub_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ExternalUsersHubAuthProvider(Authentication):

name = "EXTERNAL_USERSHUB_PROVIDER_CONFIG"
logo = '<i class="fa fa-users"></i>'
is_external = False

def authenticate(self):
params = request.json
Expand Down

0 comments on commit fded771

Please sign in to comment.