%SYS
Registration Class Reference
Inheritance diagram for Registration:
Collaboration diagram for Registration:

Static Public Member Functions

_.Library.Status AddClientSecretToJWKS (_.Library.String JWKS, _.Library.String clientSecret, _.Library.String updatedJWKS)
 Add the client secret to the public JWKS.
 
_.Library.Status GetJWKS (_.Library.String uri, _.Library.String sslConfiguration, _.Library.String jwks, _.Library.Integer expires)
 Get the JWKS from jwks_uri

More...
 
_.Library.Status ReturnJWKS ()
 Return this server's public JWKS.
 

Static Private Member Functions

_.OAuth2.Error __AuthenticateRequest (OAuth2.Server.Client client)
 Verify the client_id and registration_access_token, and perform common setup tasks.
 
_.OAuth2.Error __Common ()
 Perform common setup tasks: More...
 
_.OAuth2.Error __GetMetadataFromRequest (OAuth2.Client.Metadata metadata)
 Read the metadata sent from client.
 
_.OAuth2.Error __ReturnClientMetadata (OAuth2.Server.Client client, _.Library.Boolean isNew)
 Update client values from metadata, save client, and output metadata to client.
 
_.OAuth2.Error __UpdateClientMetadata (OAuth2.Server.Client client)
 Update the client metadata response for the specified client.
 
_.OAuth2.Error __ValidateMetadata (OAuth2.Server.Client client, OAuth2.Client.Metadata metadata, _.Library.Boolean isNew)
 Validate the metadata supplied by the user, and update the client object accordingly. More...
 

Member Function Documentation

◆ __Common()

_.OAuth2.Error __Common ( )
staticprivate

Perform common setup tasks:

1) set up headers 2) require TLS 3) ensure that OAuth2 Server has been configured

◆ GetJWKS()

_.Library.Status GetJWKS ( _.Library.String  uri,
_.Library.String  sslConfiguration,
_.Library.String  jwks,
_.Library.Integer  expires 
)
static

Get the JWKS from jwks_uri

Parameters:

  • uri - the value of the jwks_uri
  • sslconfiguration - the name of an SSL Configuration to use to communicate with the remote server
  • jwks (output) - the jwks retrieved from the server
  • expires (output) - The JWKS expiration. This is based on the Cache-Control header sent from the remote server. Possible values are:
    • -1 - no expiration
    • 0 - the JWKS cannot be cached
    • a positive integer - The time in seconds from beginning of the Unix epoch at which the JWKS will expire

Returns: A status code indicating success or failure.

◆ __ValidateMetadata()

_.OAuth2.Error __ValidateMetadata ( OAuth2.Server.Client  client,
OAuth2.Client.Metadata  metadata,
_.Library.Boolean  isNew 
)
staticprivate

Validate the metadata supplied by the user, and update the client object accordingly.

If this returns an error, the client should NOT be saved.