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] Multi auth handling changes (#128)
* Send PasswordReset to server if user not found in firebase * Set company auth_provider from mgmt_api * Dont send CEM updates for non google accounts * Add AUTH_PROVIDERS for Google & Azure * Fix email_sent check used while developing * fix(build): Upgrade to latest eve-elastic * add/fix tests * fix lint * remove example test * fix(ci): Improve npm install times
- Loading branch information
1 parent
359e3fd
commit 5dd08b3
Showing
13 changed files
with
185 additions
and
37 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
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
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,9 @@ | ||
from newsroom.signals import company_create | ||
|
||
|
||
def on_company_create(sender, company, **kwargs): | ||
company.setdefault("auth_provider", "gip") | ||
|
||
|
||
def init_app(app): | ||
company_create.connect(on_company_create) |
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,9 @@ | ||
from flask_wtf import FlaskForm | ||
from wtforms import StringField, BooleanField | ||
from wtforms.validators import DataRequired, Length, Email | ||
from flask_babel import lazy_gettext | ||
|
||
|
||
class PasswordResetForm(FlaskForm): | ||
email = StringField(lazy_gettext("Email"), validators=[DataRequired(), Length(1, 64), Email()]) | ||
email_sent = BooleanField("email_sent", validators=[]) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,7 @@ | |
ABS_PATH = Path(__file__).resolve().parent | ||
|
||
MGMT_API_ENABLED = True | ||
|
||
INSTALLED_APPS = [ | ||
"cp.mgmt_api_signals", | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.