Skip to content
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

Token request status returned 404 #4

Closed
justoke opened this issue May 13, 2021 · 4 comments
Closed

Token request status returned 404 #4

justoke opened this issue May 13, 2021 · 4 comments

Comments

@justoke
Copy link

justoke commented May 13, 2021

Hi Daniel,

Awesome collection of articles and a ton of useful information. I'm struggling with the article steps https://daniel-krzyczkowski.github.io/Cars-Island-ASP-NET-Core-API-Secured-By-Azure-AD-B2C/ , in particular the request for the token.

The part that is somewhat vague is where does the policy name come from and in particular where is this configured in the Azure AD B2C? I see that in the config you have policy name set to B2C_1A_SignUpOrSignin, and the token request would be constructed as follows (I used the docs to check the format https://docs.microsoft.com/en-gb/azure/active-directory-b2c/access-tokens)
https://.b2clogin.com/.onmicrosoft.com//oauth2/v2.0/authorize?client_id=xxxx etc

I get an http 404 as I have not configured a policy and nor do I see where to do this. I looked at the docs https://docs.microsoft.com/en-gb/azure/active-directory-b2c/user-flow-overview and the refer to User flows and Custom policy but I do not see the User flows menu anywhere on the Azure AD B2C configuration.

Thank you.

@Daniel-Krzyczkowski
Copy link
Owner

Hi,

Thank you for letting me know, I am happy that you found my articles interesting and helpful.
When it comes to your question.
In the Cars Island project I used custom policies (Identity Experience Framework) in the Azure AD B2C.
Below two links can help you understand the concept behind custom policies and how to setup them:

Azure AD B2C custom policy overview

Tutorial: Create user flows in Azure Active Directory B2C

This is the screenshot from my Azure AD B2C tenant created for Cars Island project:

sc1

sc2

I hope above details will help you.

@justoke
Copy link
Author

justoke commented May 14, 2021

Thank you for the details - I managed to find the User flows - Azure AD and Azure AD B2C have their own configuration as I now know. I should be able to find my way further.

Are you perhaps available for some consulting work?

@Daniel-Krzyczkowski
Copy link
Owner

Great to know. Yes, I am available so please let me know once you need additional help.

@justoke
Copy link
Author

justoke commented May 20, 2021

I managed to figure it out and get the token. There are some inconsistencies in the documentation versus the actual query string format. I copied the URL from the Run user flow and compared to the docs and figured it out from there.

Please let me know how to contact you as I am looking for some consultancy on a project. I do have a public email on my GitHub profile if you can reach out to me there. Thanks.

@justoke justoke closed this as completed May 20, 2021
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

No branches or pull requests

2 participants