Skip to content

Conversation

@shreemaan-abhishek
Copy link
Contributor

When using saml auth with azure AD, it was found that protocol binding with HTTP-GET is not supported.

image

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=Lax will come into play. Hence, when protocol binding method is set to HTTP-POST, samesite should set to be None and secure to true.

Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
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"
Copy link
Contributor Author

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>
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
}
--- error_code: 200
--- error_log
login callback req with http post
Copy link
Contributor Author

@shreemaan-abhishek shreemaan-abhishek Jan 21, 2026

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
Copy link
Contributor Author

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>
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
@shreemaan-abhishek shreemaan-abhishek merged commit 5b234a5 into api7:main Jan 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants