Giter Club home page Giter Club logo

Comments (7)

gsacavdm avatar gsacavdm commented on August 16, 2024

This samples hasn't been tested on Mac yet.

Can you enable Safari's Web Inspector or use Chrome and it's Developer Tools (F12) to check out the network trace. The key question is whether it is redirecting to Azure AD B2C which immediately redirects back to localhost:8080 or whether it's just not going to Azure AD B2C at all...

Is this with the default (pre-configured) appsettings or is this only after you update them with your own?

from active-directory-b2c-dotnetcore-webapp.

jaxxon33 avatar jaxxon33 commented on August 16, 2024

Thanks for your response @gsacavdm.

I see this with the original code with the default appsettings.

One thing to note is while VS Windows runs the app on HTTPS port 44316, VS Mac uses a random HTTP port. By targeting net core 2.0, the app runs on the user specified port shown below.

screen shot 2017-05-21 at 10 06 04 am

I am able to get it to run on port 44316 but not sure if I need to configure it to HTTPS also?

I will try your network trace suggestion later today (10AM Australian time here :))

Since VS Mac is not yet supported by this code, should I close the issue for now?

from active-directory-b2c-dotnetcore-webapp.

jaxxon33 avatar jaxxon33 commented on August 16, 2024

Looks like it's going to login.microsoft.com first...

screen shot 2017-05-21 at 2 09 45 pm
screen shot 2017-05-21 at 2 10 02 pm

from active-directory-b2c-dotnetcore-webapp.

jaxxon33 avatar jaxxon33 commented on August 16, 2024

Maybe more useful info in Chrome...

screen shot 2017-05-22 at 10 29 02 am
screen shot 2017-05-22 at 10 30 12 am
screen shot 2017-05-22 at 10 32 11 am

from active-directory-b2c-dotnetcore-webapp.

parakhj avatar parakhj commented on August 16, 2024

@jaxxon33 I tried this sample on a mac (simply downloaded it and ran it). It worked fine for me. Did you make any changes after downloading it? I think you need to make sure you use port 5000 - it's hard coded into the code

from active-directory-b2c-dotnetcore-webapp.

jaxxon33 avatar jaxxon33 commented on August 16, 2024

Hi @parakhj, as mentioned I made no changes at first. I even tried on multiple MacBooks. I have now changed to port 5000 and everything works. Thank you so much for the tip!

screen shot 2017-05-22 at 3 50 23 pm

from active-directory-b2c-dotnetcore-webapp.

jaxxon33 avatar jaxxon33 commented on August 16, 2024

I just downloaded a fresh copy of the code and ran it. By default VS for Mac doesn't run on port 5000. I changed it to port 5000 then rebuilt but my changes are ignored. I can get it to run on the port I specify by targeting netcoreapp 2.0. Then all is well except it's not running on HTTPS and so is insecure.

screen shot 2017-05-22 at 7 24 29 pm

screen shot 2017-05-22 at 7 29 44 pm

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.