Use AspnetBoilerplate as OpenId Client (How to login with Identity Server) ?
See original GitHub issueHow can I log in with the identity server? when I use sample Codes the page refreshes infinitely after login. this is my AuthConfigurer.Config
JwtSecurityTokenHandler.DefaultMapInboundClaims = false;
services.AddAuthentication(options =>
{
options.DefaultScheme = "Cookies";
options.DefaultChallengeScheme = "oidc";
})
.AddCookie("Cookies")
.AddOpenIdConnect("oidc", options =>
{
options.Authority = "https://localhost:5009";
options.ClientId = "mvc";
options.ClientSecret = "secret";
options.ResponseType = "code";
options.Scope.Add("api1");
options.SaveTokens = true;
});
Is there any working sample?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:20 (9 by maintainers)
Top Results From Across the Web
Articles Tutorials | AspNet Boilerplate
Identity Server is an open source OpenID Connect and OAuth 2.0 framework. It can be used to make your application an authentication /...
Read more >OpenID Connect Integration - aspnetboilerplate
OpenIdConnect. But if you want to be an open id connect server, it's a different thing. You can then use Identity Server for...
Read more >Adding User Authentication with OpenID Connect
In this quickstart we want to add support for interactive user authentication via the OpenID Connect protocol to our IdentityServer. Once that is...
Read more >how to implement IdentityServer4 integration? #6700 - Support
As my application need to login from another application automatically. ... ://aspnetboilerplate.com/Pages/Documents/Zero/Identity-Server.
Read more >Modules/IdentityServer | Documentation Center | ABP.IO
This module persists clients, resources and other IDS-related objects to database. ... Note: You can not use IdentityServer and OpenIddict modules together.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@behiunforgiven when the OpenID provider returns to your app, how do you handle the signIn process ? Normally, you should handle it similar to code below;
@behiunforgiven you can take a look at https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/IdentityServervNextDemo