mirror of
https://github.com/fastenhealth/fasten-onprem.git
synced 2026-02-19 17:39:27 -06:00
- when SourceCredential is sent to the CreateSource API, we'll check if dynamic client regirstion is enabled. If it is, we'll use this token to register a new client, store the client information, and geneate a new Access Token using the key pair associated with this newly registered client. - added additional fields to SourceCredential table (registration_endpoint, dynamic_client_registration_mode, dynamic_client_jwks, dynamic_client_id) - renamed RefreshTokens to SetTokens in SourceCredential model - to have consistent naming - added IsDynamicClient and RefreshDynamicClientAccessToken methods to SourceCredential Model fixes #178
18 lines
469 B
Go
18 lines
469 B
Go
package models
|
|
|
|
type ClientRegistrationRequest struct {
|
|
SoftwareId string `json:"software_id"`
|
|
Jwks ClientRegistrationRequestJwks `json:"jwks"`
|
|
}
|
|
|
|
type ClientRegistrationRequestJwks struct {
|
|
Keys []ClientRegistrationRequestJwksKey `json:"keys"`
|
|
}
|
|
|
|
type ClientRegistrationRequestJwksKey struct {
|
|
KeyId string `json:"kid"`
|
|
KeyType string `json:"kty"`
|
|
PublicExponent string `json:"e"`
|
|
Modulus string `json:"n"`
|
|
}
|