Giter Club home page Giter Club logo

Comments (7)

jmprieur avatar jmprieur commented on July 18, 2024 1

@RadOsinski : can you please try this sample: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/1-WebApp-OIDC/1-5-B2C.
It's part of an incremental tutorial and is about a Web App that signs-in users with B2C and uses b2cLogin

cc: @negoe @henrik-me @bgavrilMS @jennyf19

from active-directory-b2c-dotnetcore-webapp.

RadOsinski avatar RadOsinski commented on July 18, 2024

@jmprieur Thanks! That resolve an issue!

from active-directory-b2c-dotnetcore-webapp.

akourbat avatar akourbat commented on July 18, 2024

I also ran into this problem and it took me a few days looking for answers. I suggest you change the AzureAdB2COptions class in the sample so that it uses b2clogin.com by default, otherwise access tokens are rejected by protected APIs - since most of them use b2clogin.com authority, and not soon-to-be deprecated https://login.microsoftonline.com/tfp, which is hard-coded into the sample.

from active-directory-b2c-dotnetcore-webapp.

TiagoBrenck avatar TiagoBrenck commented on July 18, 2024

@akourbat we have an updated sample here: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/1-WebApp-OIDC/1-5-B2C

from active-directory-b2c-dotnetcore-webapp.

akourbat avatar akourbat commented on July 18, 2024

The above example only handles log-in to a webapp, and not a scenario where webapp then accesses a back-end webapi on behalf of the user like this repo does.

from active-directory-b2c-dotnetcore-webapp.

TiagoBrenck avatar TiagoBrenck commented on July 18, 2024

Oh I see. The version that you re looking for is under review: Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2#192

from active-directory-b2c-dotnetcore-webapp.

jmprieur avatar jmprieur commented on July 18, 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.