Giter Site home page Giter Site logo

Comments (13)

dstrockis avatar dstrockis commented on July 17, 2024

Yes, the sample has only been tested against CTP6. I will try to update for RC by end of the week. Thanks @jwood803

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

jwood803 avatar jwood803 commented on July 17, 2024

Thanks @dstrockis! To help here are a couple of things I noticed, though keep in mind they may be me being dumb. :p

  • I used the ASP.NET 5 Preview Web Site template and I noticed that, while it created all the necessary files, it didn't seem to add everything to the project. I had to add everything I needed manually.
  • I had to add the Microsoft.Owin.Security.Cookies NuGet package to resolve CookieAuthenticationDefaults.AuthenticationType error.

Let me know if there's anything I can do to help out.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

dstrockis avatar dstrockis commented on July 17, 2024

Cool. Will do, thanks!

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

jwood803 avatar jwood803 commented on July 17, 2024

Not sure why I didn't do this earlier, but if it helps I uploaded the solution I was using to a repository.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

jwood803 avatar jwood803 commented on July 17, 2024

Just to keep everyone in the loop, I was able to get this to build by removing the dnxcore50 section in the project.json file. It now looks like the below:

"frameworks": {
        "dnx451": { }
    },

Of course, now I get this run time error:

Could not load file or assembly 'Microsoft.Framework.Logging.ILoggerFactory' or one of its dependencies. The system cannot find the file specified.

I wonder if this part actually needs the dnxcore50 items.

EDIT: I also updated the repository, if needed.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

levalencia avatar levalencia commented on July 17, 2024

please update it for RC, I also have the loggerfactory error and I am stuck :(

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

jwood803 avatar jwood803 commented on July 17, 2024

I added Microsoft.Framework.Logging to the project.json file as well as remove any instances of Microsoft.Framework.Logging in the project.lock.json file and somehow still get the error message. I'm not quite sure what else to do.

EDIT: Thanks to some comments from this StackOverflow question I updated one of the Authorization namespaces. It now "runs" but I just get a blank page. I've updated the repo with the latest.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

levalencia avatar levalencia commented on July 17, 2024

I also created my own REPO, thanks to Jon it now compiles, however I get this error

An unhandled exception occurred while processing the request.
InvalidOperationException: Unable to resolve service for type 'Microsoft.Framework.ConfigurationModel.IConfiguration' while attempting to activate 'WebApplication2.Controllers.HomeController'.

Microsoft.Framework.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)

https://github.com/levalencia/AzureADTestASPNET5OpenID

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

r2musings avatar r2musings commented on July 17, 2024

I got this working finally. Will update jwood803's repo as soon as I clean it up.

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

r2musings avatar r2musings commented on July 17, 2024

This is working in VS2015RC in this fork: https://github.com/r2musings/AzureADTest

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

heavenwing avatar heavenwing commented on July 17, 2024

I create a pull request (#5) to support VS 2015 RC and dnx beta5

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

dstrockis avatar dstrockis commented on July 17, 2024

@tushargupta51 can you take a look at this?

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

NBelham avatar NBelham commented on July 17, 2024

Not good that the documentation page cites a GitHub repository that specifies the use of beta5 and beta6 NuGet packages considering that rc1-final packages are available.

I then read above... This is working in VS2015RC in this fork: https://github.com/r2musings/AzureADTest

from active-directory-dotnet-webapp-openidconnect-aspnetcore.

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.