identityserver4 - IdentityServer3 PublicOrigin and IssuerUri Difference and Usage in IdentityServerOptions -


i got issue when deploying iis. apparently client uses reverse proxy , of openid configuration disco showing ip address instead of domain name. publicorigin solves problem. however, still don't understand different between,

publicorigin 

and

issueruri 

example in:

var options = new identityserveroptions {     publicorigin = "https://myids/project1/",     issueruri = "https://myids/project1/",     ... } 

i can see disco showing changes if both value updated respectively, i.e.;

{   "issuer": "https://myids/project1/",   "jwks_uri": "https://myids/project1/.well-known/jwks",   "authorization_endpoint": "https://myids/project1/connect/authorize",   "token_endpoint": "https://myids/project1/connect/token",   "userinfo_endpoint": "https://myids/project1/connect/userinfo",   "end_session_endpoint": "https://myids/project1/connect/endsession",   "check_session_iframe": "https://myids/project1/connect/checksession",   "revocation_endpoint": "https://myids/project1/connect/revocation",   "introspection_endpoint": "https://myids/project1/connect/introspect",   ... } 

and why not make same issueruri. have read documentation on this. technically description of properties. understand more.

many thanks.

issueruri unique identifier of authorization server. value of property embedded id tokens in iss property , during token validation.

on other side, publicorigin public uri of server. if server behind reverse proxy, without hint advertise private uri in openid connect metadata (.well-known/openid-configuration).

why not have single property? openid connect specification (§ 16.15. issuer identifier) supports multiple issuers residing on same host , port. same section in specification recommends host single issuer per host , port (i.e. single-tenant).

when use multi-tenant architecture? suppose want build , sell own authentication-as-a-service. have 2 options - assign dedicated uri (publicorigin) each of customers or use single publicorigin dedicated issueruri each customer.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -