generated from superdesk/newsroom-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CPNHUB-248] fix(mgmt_api): AUTH_PROVIDERS not set in settings (#129)
* [CPNHUB-248] fix(mgmt_api): AUTH_PROVIDERS not set in settings * fix lint
- Loading branch information
1 parent
5dd08b3
commit c0373c2
Showing
3 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from flask_babel import lazy_gettext | ||
|
||
from newsroom.web.default_settings import AUTH_PROVIDERS | ||
from newsroom.types import AuthProviderType | ||
|
||
AUTH_PROVIDERS.extend([{ | ||
"_id": "gip", | ||
"name": lazy_gettext("Google"), | ||
"auth_type": AuthProviderType.GOOGLE_OAUTH.value, | ||
}, { | ||
"_id": "azure", | ||
"name": lazy_gettext("Azure"), | ||
"auth_type": AuthProviderType.SAML.value, | ||
}]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters