Coder Social home page Coder Social logo

aguafrommars / dynamicauthproviders Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 8.0 2.29 MB

Store and manage Microsoft.AspNetCore.Authentication providers dynamicaly

License: MIT License

C# 93.21% PowerShell 6.47% Batchfile 0.32%
aspnetcore authentication security

dynamicauthproviders's People

Contributors

aguacongas avatar jfarley avatar mattgrdinic avatar olivieratsien avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dynamicauthproviders's Issues

Issue in generating database

Hi, when I am trying to generate database using the commands given in README.md file it generates error as below:
Screenshot (99)

how can I resolve this issue ?

Redis cluster not supported

Describe the bug
When using a redis cluster as the store some operations fails.

To Reproduce
1 setup a redis cluster, the hosted version on Azure can be used
2 configure the connection
3 try to add multiple providers, change soe of them etc
4 exveptions are thrown

Expected behavior
no eceptions

have the core much smaller

This is what I needed to do to be able to pull in your project into our solution.
It was not possible for us to implement your EF-Core nuget package, since it required us to inherit from your context & baseclass and we don't want to add a nuget package to our shared project that contains our simple objects (POCO)... it just adds too much dependencies which we don't need and want.

Serializer do not set RequireHttpsMetadata false

The MetadataAddress must use HTTPS unless disabled for development by setting RequireHttpsMetadata=false.
System.InvalidOperationException: The MetadataAddress must use HTTPS unless disabled for development by setting RequireHttpsMetadata=false.
at Microsoft.AspNetCore.Authentication.WsFederation.WsFederationPostConfigureOptions.PostConfigure(String name, WsFederationOptions options)
at Aguacongas.AspNetCore.Authentication.OptionsMonitorCacheWrapper1.TryAdd(String name, AuthenticationSchemeOptions options) at Aguacongas.AspNetCore.Authentication.NoPersistentDynamicManager1.AddAsync(TSchemeDefinition definition, CancellationToken cancellationToken)
at Aguacongas.AspNetCore.Authentication.PersistentDynamicManager`1.AddAsync(TSchemeDefinition definition, CancellationToken cancellationToken)

Dymamic spelling mistake in title

Nice package, definitely a problem-solver (I hope). The name of the repository is a bit confusing. Is it a typo maybe or is there a thought behind 'Dymamic'?

How can I configure arbitrary OAuth providers with additional properties being passed and serialized

I don't want to use some pre-configured OAuth provider (like GitHub on the sample) and only change the client secret and id. Instead I want to be able to specify all related OAuth configuration settings that are needed like the requested claims, the userinfo endpoint, tokenendpoint etc.
I already changed the Create method on HomeController to receive additional user-posted data with the AuthenticationViewModel viewmodel and inside the controller I am creating new OAuthOptions object and populating it.

OAuthOptions oAuthOptions = new OAuthOptions();
oAuthOptions.Scope.Add("openid");
oAuthOptions.Scope.Add("profile");
oAuthOptions.Scope.Add("email");
oAuthOptions.UserInformationEndpoint = "https://mycustomprovider/oauth2/userinfo";

Right now the scopes are not saved in the database.

Add support for OIDC

To meet my requirements, I need to configure multiple OIDC providers within the Identity Server. Each OIDC provider has a different authority URL, which we need to configure from the database. It would be great if you could provide examples on how to achieve this, or we can include this in the current code.

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.