-
Notifications
You must be signed in to change notification settings - Fork 174
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
Make automatic login configurable #131
Make automatic login configurable #131
Conversation
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.
Name change required: disableAutoLogin
assumes it is disabled by default (since all our settings default to true
. Would name it the opposite way like autoLogin
.
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.
LGTM
if (!getConfigValue('auth.disableAutoLogin')) { | ||
this.startAuthorization(); | ||
return; | ||
}; |
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.
Would try to avoid the evaluation negation here, as it is not necessary.
if (getConfigValue('auth.disableAutoLogin')) {
return;
};
this.startAuthorization();
return
Hint: if the config value would be truthy, we could do something like that:
return getConfigValue('auth.autoLogin') && this.startAuthorization();
docs/authorization-configuration.md
Outdated
@@ -1,13 +1,14 @@ | |||
# Authorization Configuration | |||
|
|||
Luigi provides OpenID Connect and OAuth2 Implicit Grant authorization out of the box. The **use** key defines the active authorization provider. | |||
Luigi provides OpenID Connect and OAuth2 Implicit Grant authorization out of the box. The **use** key defines the active authorization provider and the **disableAutoLogin** key allows to disable the automatic login flow that is provided by default. |
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.
allows to -> allows you to
* Add the possibility to disable auto-login
Description
Changes proposed in this pull request:
Related issue(s)