-
Notifications
You must be signed in to change notification settings - Fork 236
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
The demo project is out of date for decade, can we have the latest .NET 8 version? #165
Comments
@winzuus This repo here is for OWIN, which is indeed old tech |
Hi @jmprieur thank you so much for providing the up to date code sample and glad to see a contributor replying my issue :) I have read the Sample Code and found it uses the OpenID Connect Flow, but I need to use the "Client Credential Flow". The reason for this is I need to test my endpoint being protected without the user interactions. I will test it first with Postman, later I would like to do the auto testing in Unit tests, so a flow which requires user interactions does not fit my purpose. Does Microsoft have code sample for this scenario? Appreciated if you could provide a link. Many thanks, Winston |
@winzuus - client credentials flow is for service principals not for users. If your web api acts on behalf of a user, then we recommend that you test with Username/Password flow: |
Hi @bgavrilMS thanks for your update. I have found the Client Credential Flow is the most suitable flow for our case. I have checked its official document but have not found a Github demo. Thanks |
@bgavrilMS @jmprieur Is it the same flow as the Client Credential Flow? |
Yes @winzuus The OAuth2 spec mentions the
|
Hi @bgavrilMS For the 1st option: based on a secret, what is the reason that it is not recommended in production? |
|
Thank you all questions answered 😌 |
Hi there,
I am trying to do exactly the same scenario as the demo project does.
I have a Asp.Net Core Web API (.NET 8) project (will be hosted on Azure when finished), I would like to use the Azure AD B2C to protect the endpoints in the Web Api project.
The front end Web App will be hosted on Azure as well.
I would like to use an access token in the Web App requests.
I followed the latest official document and found this Demo project which does exactly what I want.
But sadly, this demo project has been out of date, not even use .Net Core framework.
Could you please provide an update to date demo project which uses the latest .Net 8 version?
The text was updated successfully, but these errors were encountered: