IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Multiple Names for issuer(authority) for Identity Token

Open yehonathan opened this issue 9 years ago • 4 comments

Hi So I have identityserber running on a computer(server) in a local network. So i can access the through the browser by either or . The problem is if i get the token with either, the issuer of the token become either the ip address or the computer name respectively. I realise that when using this setup to authenticate an API , the issuer is checked against the Authority I set in my Startup.cs for the .net core api application. According to the code in the documentation....

 app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions
    {
        Authority = "????",//How do i use multiple authorities
        RequireHttpsMetadata = false,
        ApiName = "api1"
    });

How do i make sure the authority matches multiple names that refer to the same identity server

yehonathan avatar May 28 '17 17:05 yehonathan

Either always use the same DNS name to access IS. Or set a static issuer name in the IS options.

leastprivilege avatar May 29 '17 05:05 leastprivilege

I have a similar issue, but with a different scenario.

I have 1 IS in Kestrel which issues JWT tokens using the OpenID and the user-password scheme. Another IS In IIS which issues JWT tokens using custom code which reads integrated windows authentication.

The problem is that if I add the two middlewares, one after the other, the authentication fails.

Any idea?

alexdrl avatar Oct 25 '17 08:10 alexdrl

Hi I have the same issue alexdrl has, any work around or solution available? can not we validate a token using authority=issuer of token?

yahya99223 avatar Jan 15 '18 10:01 yahya99223

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 13 '20 19:01 lock[bot]