Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityServer.​Services.​DefaultTokenCreationService
Assembly: Duende.IdentityServer
Inheritance: object → DefaultTokenCreationService
Implemented Interfaces
Default token creation service
Fields and Constants
protected readonly
IKeyMaterialService
Keys
The key service
protected readonly
Microsoft.​Extensions.​Logging.​ILogger
Logger
The logger
protected readonly
IClock
Clock
The clock
protected readonly
Configuration.​IdentityServerOptions
Options
The options
Methods
public
System.​Threading.​Tasks.​Task<​string>
CreateTokenAsync​(Models.​Token token)
Creates the token.
Returns A protected and serialized security token
token
The token.
protected
System.​Threading.​Tasks.​Task<​string>
CreatePayloadAsync​(Models.​Token token)
Creates the JWT payload
protected
System.​Threading.​Tasks.​Task<​System.​Collections.​Generic.​Dictionary<​string, object>>
CreateHeaderElementsAsync​(Models.​Token token)
Creates additional JWT header elements
protected
System.​Threading.​Tasks.​Task<​string>
CreateJwtAsync​(Models.​Token token,
string payload,
System.​Collections.​Generic.​Dictionary<​string, object> headerElements)
Creates JWT token
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object