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
AADSTS50107: Requested federation realm object 'https://sts.windows.net/xxxxxxxxxxxxxx' does not exist error is coming while calling the token api with assertion token #40210
Comments
|
@amarnathprofisssional, Thank you for your query. We will investigate and update this thread. |
|
@amarnathprofisssional, Can you please share the URL for the token endpoint that you are using? |
|
@souravmishra-msft https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/token But, I am still facing same issue |
|
This issue occurs for one of the following reasons: The Issuance Transform rule is required to change the issuer from the default Active Directory Federation Service (AD FS) instance host name to the issuer set if the domain that's federated is missing. Check the steps mentioned in the following article and let us know if that helped. |
|
I have few questions.
My assumption is that since we are already getting the saml response that means there is no issue with the configurations. Correct me if I am wrong?
|
|
Hi any update on this? |
|
@amarnathprofisssional, Few parts of the SAML response totally depends on what is specified in the SAML assertion, that you are sending to the ADFS server. By that I mean, the following tags:
Now based on the values in these tags,the user name and password is validated by ADFS and then it looks for the "<a:Address>" tag to understand for which Relying Party in ADFS this SAML assertion is sent for. After identifying the same, ADFS issues the claims to that RP based on the claims configured in for that RP and prepares the SAML response for the application to be consumed. Now looking into the actual error message AADSTS50107 and description and also looked into the back-end data based on the correlation Id and timestamp from that error and found that what you are sending in the request, doesnt match what is configured in your RPs identifier field. The entry in the identifiers filed of the RP [in this case O365's RP], should match up with entry in the <a:Address> tag in the SAML assertion that you are sending. Coming to the second question, Connect-MSOLService is a legacy cmdlet and that is not supported by the Cloud shell. Hence you will have to install the module on a normal powershell and then use it. We recommend installing the MSOLService module on the ADFS server and execute the commands from there. Hope this helps. |
|
@amarnathprofisssional, I just wanted to check with you if there are any more queries around this question. Do let us know, so that we can proceed accordingly. |
|
Thanks for the details. |
|
@amarnathprofisssional, I just wanted to check with you if there are any more queries around this question. Do let us know, so that we can proceed accordingly. |
|
we are still checking and we will come back to you once done. |
|
@amarnathprofisssional, We are closing this thread as of now. Please feel free to re-open this thread in case you need any further help on the same. |
|
Hello, I faced to the same response error: I successfully set up SSO between Azure Active Directory and Laravel App. After SSO login I get Response with attributes, SAML assertion base64 encoded, and etc.. My POST request Url: Body: Just for test deflated SAML response and saw that response is <samlp:Response ID="xxxx" Version="2.0" .... Also try deflating the SAML response and picking only the SAML assertion element from the SAML response and then pass it to the /token endpoint after encoding it back but faced to same response error. Is there a way to get it working ? |
|
Hi @tihomirbg. Have you fixed it? I am also facing this issue... |
|
Hi, unfortunately not. You can not use this SAML response. After SSO you can use Auth Code Grant to retrieve access token. |
|
@tihomirbg Can you explain further with an example how one will do this? Which endpoints does one use...how does one set the session cookie. A postman example would be helpful. Thanks I am facing same issue |
|
Any update on this thread? |
I have followed with the continuation of below link.
#37742
While calling the token api call, we are getting below error.
{"error":"invalid_request","error_description":"AADSTS50107: Requested federation realm object 'https://sts.windows.net/xxxxxxxxxxxxxxxxxx/' does not exist.\r\nTrace ID: 61e097a6-dfa7-4869-b573-ea8e0ec25100\r\nCorrelation ID: 73372794-eaee-45f0-b599-3f8d9a138ac7\r\nTimestamp: 2019-09-30 20:03:53Z","error_codes":[50107],"timestamp":"2019-09-30 20:03:53Z","trace_id":"61e097a6-dfa7-4869-b573-ea8e0ec25100","correlation_id":"73372794-eaee-45f0-b599-3f8d9a138ac7","error_uri":"https://login.microsoftonline.com/error?code=50107"}
I have provided the request as specified with the assertion token i.e., base64 encoded that I am getting from saml response.
https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-saml-bearer-assertion
#37742
Can you please help me on this.
Thanks
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: