Coder Social home page Coder Social logo

Comments (8)

phatcher avatar phatcher commented on June 24, 2024

Can I have some response please!

from active-directory-b2c-dotnetcore-webapp.

phatcher avatar phatcher commented on June 24, 2024

@parakhj yet again no response from anyone in your team

from active-directory-b2c-dotnetcore-webapp.

parakhj avatar parakhj commented on June 24, 2024

Apologies @phatcher. The URL's, while different, do the same thing. Some OIDC libraries don't like the fact that there is a non-standard parameter (the p parameter for policy), so we have to provide a URL format that has the policy in the path.

For quicker replies, I encourage also posting on stackoverflow, using the tag 'azure-ad-b2c'. There are a lot more people monitoring that

from active-directory-b2c-dotnetcore-webapp.

phatcher avatar phatcher commented on June 24, 2024

@parakhj No if you are going to post examples here, it makes sense to support them here. Also the only question posted on SO regarding this example has no replies apart from the author.

If you are not going to support these examples directly, make it clear in the documentation page of the project.

What's not clear from the documentation is that from the .NET to the dotnetcore version you must change the reply url in the Azure B2C tenant to include "signin-oidc" i.e. if you previously had "https://localhost:44316" you must also add "https://localhost:44316/signin-oidc" for the dotnetcore client code to work

from active-directory-b2c-dotnetcore-webapp.

parakhj avatar parakhj commented on June 24, 2024

The redirect URL is something you have full control over. It's just a matter of what URL the application is listening at. The .dotnetcore convention is to add the code that listens to the reply behind the path specified by /signin-oidc at the end. However, your code could handle it at the root level as well. It's just how you implement it

from active-directory-b2c-dotnetcore-webapp.

phatcher avatar phatcher commented on June 24, 2024

@parakhj From what I can see yes we do have full control over the reply url, however we must append /signin-oidc to the registered url in the Azure B2C tenant, or whatever string is assigned to OpenIdConnectOptions.CallbackPath, which won't except an empty string.

So from my perspective, this is a breaking change since I didn't have to do this for the standard .NET WebApp code and you have failed to adequately document this - I say this because there are about four open issues here which are all about this problem.

When you say "your code could handle it at the root level", can you explain what you mean by this?

from active-directory-b2c-dotnetcore-webapp.

parakhj avatar parakhj commented on June 24, 2024

Ah okay. Thanks for clarifying that - didn't properly acknowledge that you are migrating from your .NET webapp code.
Sure I'll work on making the instructions more clear.

from active-directory-b2c-dotnetcore-webapp.

jmprieur avatar jmprieur commented on June 24, 2024

Closing this issue as this sample is being archived and replaced by a newer ASP.NET Core 3.1 sample.
See Readme.md

from active-directory-b2c-dotnetcore-webapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.