Giter VIP home page Giter VIP logo

servicestack.authentication.azure's People

Contributors

mdissel avatar ticky74 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

servicestack.authentication.azure's Issues

Allow to override authorization and token urls

An item with the same key has already been added. Key: ClientId

I think this errors depends a bit on which scope the provider is registered, but with an easy fix that doesn't matter any more

[Authenticate: 12-4-2017 14:23:58]: [REQUEST: {provider:ms-graph}] System.ArgumentException: An item with the same key has already been added. Key: ClientId at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object key) at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at ServiceStack.Authentication.Azure.AzureAuthenticationProvider.RequestCode(IServiceBase authService, Authenticate request, IAuthSession session, AuthUserSession userSession, IAuthTokens tokens) at ServiceStack.Authentication.Azure.AzureAuthenticationProvider.Authenticate(IServiceBase authService, IAuthSession session, Authenticate request) at ServiceStack.Auth.AuthenticateService.Authenticate(Authenticate request, String provider, IAuthSession session, IAuthProvider oAuthConfig) in /opt/lib/teamcity-agent/work/d09206570215629/src/ServiceStack/Auth/AuthenticateService.cs:line 284 at ServiceStack.Auth.AuthenticateService.Post(Authenticate request) in /opt/lib/teamcity-agent/work/d09206570215629/src/ServiceStack/Auth/AuthenticateService.cs:line 145 at lambda_method(Closure , Object , Object ) at ServiceStack.Host.ServiceRunner1.Execute(IRequest request, Object instance, TRequest requestDto) in /opt/lib/teamcity-agent/work/d09206570215629/src/ServiceStack/Host/ServiceRunner.cs:line 107

invalid cast exception

When I try to login (using a form POST to /auth/ms-graph) this exception is raised:

[Authenticate: 11-4-2017 12:34:30]:\n[REQUEST: {provider:ms-graph,userName:[email protected]}]\nSystem.InvalidCastException: Unable to cast object of type 'Microsoft.AspNetCore.Http.Internal.QueryCollection' to type 'System.Collections.Specialized.NameValueCollection'.\r\n at ServiceStack.Authentication.Azure.AzureAuthenticationProvider.Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)\r\n at ServiceStack.Auth.AuthenticateService.Authenticate(Authenticate request, String provider, IAuthSession session, IAuthProvider oAuthConfig) in /opt/lib/teamcity-agent/work/d09206570215629/src/ServiceStack/Auth/AuthenticateService.cs:line 284\r\n at ServiceStack.Auth.AuthenticateService.Post(Authenticate request) in /opt/lib/teamcity-agent/work/d09206570215629/src/ServiceStack/Auth/AuthenticateService.cs:line 145\r\n at ServiceStack.Host.ServiceRunner'1.Execute(IRequest request, Object instance, TRequest requestDto) in /opt/lib/teamcity-agent/work/d09206570215629/src/ServiceStack/Host/ServiceRunner.cs:line 107

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.