-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Okta as auth provider #119
Conversation
plus improving relationship between session storage and secrets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a lot here but reading through it makes sense! I wouldn't catch if something is missing, so I'm glad you are planning a test deploy. Nice work!
app.register_blueprint(oauth_blueprint, url_prefix="/login") | ||
|
||
else: | ||
warnings.warn(f"unknown auth provider {AUTH_PROVIDER!r}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should be an error. What state will FB be in if it has an unknown provider? Will calls fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or critical/fatal if that is a level.
OAUTH_MAX_AGE = parse_timedelta( | ||
typing.cast( | ||
str, | ||
cfg.get("FUZZBUCKET_OAUTH_MAX_AGE", default="1 day"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does day
need to be days
?
Closes #103
This set of changes is a bit more damp than I'd like given the mutual exclusivity of GitHub and Okta (generic OAuth2) providers and subtle differences between them. Maybe more drying later?