-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Feat/custom oauth2 header #2928
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ return { | |
accept_http_if_already_terminated = { required = false, type = "boolean", default = false }, | ||
anonymous = {type = "string", default = "", func = check_user}, | ||
global_credentials = {type = "boolean", default = false}, | ||
auth_header_name = {required = false, type = "string", default = "authorization"}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will require a migration. Existing records in the datastore will not have this field, nor the default. (The default is not applied when loading from the datastore, but only when adding the plugin config) This also means that this PR cannot go into As an example, look at the migrations in this PR: #2883 |
||
}, | ||
self_check = function(schema, plugin_t, dao, is_update) | ||
if not plugin_t.enable_authorization_code and not plugin_t.enable_implicit_grant | ||
|
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.
This needs to lexically sort, so please add the time in
hhmmss
format to the key (see examples above)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.
nvm, just saw the older ones did this neither.