-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Configure SAML is not working with DEX #1169
Comments
Any error messages or other hints from UAA about why it can't process dex's request? It's hard to know how to help otherwise. |
I don't use UAA, I replce UAA with DEX to integrate with IDP service. there is no logs showing what is wrong in the DEX side. |
@jenningsloy318 Can you configure your IdP to expect an AuthnRequest via the HTTP Post Binding? Your expectation,
describes the HTTP Redirect Binding, which dex doesn't support (see the docs, and this comment). More details on bindings can be found here, sections 3.4.5 and 3.5.5. |
Thanks,but i find it is difficult to configure at IDP side |
@jenningsloy318 I'm afraid the only other option would be to implement the HTTP Redirect Binding in Dex. Not like I know much about any, but what IdP is it? Maybe some passer-by has insights to share...? |
It is an IDP provided by SAP, we bought their IDP service alongside with Cloud Foundry service. |
@jenningsloy318 I see. Also, I have no idea how to help with that. I'd ask their support for getting help with switching the SAML binding type. (Unless you'd want to implement the Redirect Binding in Dex 😉 ) |
@srenatus I am a sysadm with poor programming skills, so ...😉 |
@jenningsloy318 I've taken a stab at it, thinking that it couldn't be too hard to add that Binding. @ericchiang What do you think, could we get this in? 😃 It'll help our users, for sure, by removing this arbitrary restriction when it comes to supporting SAML2. |
@srenatus Thanks for your info, hope we can get it resoved soon. |
Hey @jenningsloy318 I see you're using on demand solution of SAP Cloud Identity, I had the same error which in fact tells nothing... In my case this error occurred when :
My working dex configuration with SCP IAS :
I did not have to change bindings, I'm using helm, so replace |
— @DebugIt Thanks for info. I will test it after the vocation. |
@DebugIt I tried your recommendations, but still got no luck. Can you advise if I'd make some changes on the IAS side ? |
Hi All,
I just configure dex to integrated with my corp's IDP service, through the saml connector example, seems not working right now. dex will redirect to IDP, but no login screen appears.
Backgroud:
Our IDP service is co-work with UAA and provide the SSO for Cloud Foundry platform, the configureation need to involves trust configuration between them which is work perfectly. I want to use dex to replace UAA part with the IDP to provide the auth for kubernetes cluster in my testing env.
The trust configuration in both UAA and IDP is achieved by importing a metadata.xml file, in UAA side, it will add following four parameters:
with same value: https://csc-devops-test.<IDP domain>/saml2/idp/sso/csc-devops-test.<IDP domain>
and plus an signning certificates of the IDP URL
in IDP part, sill several configuration is needed:
Dex Configuraion:
as switched to DEX, thant is repllceing UAA with DEX to integrate with IDP service. I set dex with following parameters:
on the IDP side,the name is set to
saml
, three URL I set ishttps://dex.<my domain>/callback
, and import the dex certificates.Problem
When I use
example-app
to get the token, it will redirect to the URLhttps://csc-devops-test.<IDP domain>/saml2/idp/sso/csc-devops-test.<IDP domain>
, but neither login screen appears nor redirect tohttps://dex.<my domain>/callback
, just gave me an errorCan any one help me to configure it?
mages.githubusercontent.com/10169236/34887793-b39256e8-f802-11e7-8db1-d4adfdc1ac83.png)
Can any one help me to configure it?
The main problems is:
when login with example-app, via
http://ip:5555/login
, it will redirect tohttps://dex.<my domain>/auth?client_id=kubernetes&redirect_uri=http%3A%2F%2F127.0.0.1%3A5555%2Fcallback&response_type=code&scope=audience%3Aserver%3Aclient_id%3Akubernetes+openid+profile+email+offline_access&state=I+wish+to+wash+my+irish+wristwatch
and then when I chooseLogin with SAML
then redirect tohttps://dex.<my domain>/auth/saml?req=va46pbjbpmyt7e22v2wb4j7gz
and thenhttps://csc-devops-test.<IDP domain>/saml2/idp/sso/csc-devops-test.<IDP domain>
. but for a usable redirect, it should behttps://csc-devops-test.<IDP domain>/saml2/idp/sso/csc-devops-test.<IDP domain>?SAMLRequest=va46pbjbpmyt7e22v2wb4j7gz
, append ?SAMLRequest=va46pbjbpmyt7e22v2wb4j7gz to the ssoURL, but actually not.useable example of UAA quest:
/ help wanted
The text was updated successfully, but these errors were encountered: