Class IdentityServerConstants.LocalApi
- Namespace
- Fdyay.IdentityServer
- Assembly
- Fdyay.IdentityServer.Core.dll
The scheme, scope and policy an API hosted beside this server is protected with.
public static class IdentityServerConstants.LocalApi
- Inheritance
-
IdentityServerConstants.LocalApi
- Inherited Members
Remarks
A host that serves its own API in the identity server's process — an administration surface, a configuration endpoint — has a resource server with no network between it and the token authority. The names are fixed rather than configurable because all three are a contract with the host's own registrations: a client is granted ScopeName, an endpoint requires PolicyName, and both have to spell the same thing as the handler.
Fields
AuthenticationScheme
The authentication scheme the local API handler is registered under.
public const string AuthenticationScheme = "IdentityServerAccessToken"
Field Value
PolicyName
The authorization policy AddLocalApiAuthentication registers.
public const string PolicyName = "IdentityServerAccessToken"
Field Value
Remarks
The scheme's name, as Duende's is (measured): the policy is "authenticated by this scheme", and the scope is
the handler's to require. "IdentityServerApi", the scope's name, until 0.165.0.
ScopeName
The scope a token must carry to be accepted by a local API.
public const string ScopeName = "IdentityServerApi"