-
Notifications
You must be signed in to change notification settings - Fork 2
feat: make saml protocol binding method configurable #24
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: make saml protocol binding method configurable #24
Conversation
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
| if samls[sp_issuer] == nil then | ||
| local kc = require("lib.keycloak") | ||
| local opts = setmetatable({sp_issuer = sp_issuer}, {__index = kc.get_default_opts()}) | ||
| opts.auth_protocol_binding_method = "HTTP-POST" |
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.
uses post
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
| } | ||
| --- error_code: 200 | ||
| --- error_log | ||
| login callback req with http post |
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.
assert method
| } | ||
| --- error_code: 200 | ||
| --- error_log | ||
| login callback req with redirect |
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.
assert method
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
When using saml auth with azure AD, it was found that protocol binding with
HTTP-GETis not supported.Thus we need to make protocol binding configurable.
Once that is done, integration with Azure AD still failed because the browser would block from cookie header being sent since the default value of
samesite=Laxwill come into play. Hence, when protocol binding method is set toHTTP-POST, samesite should set to be None and secure to true.