lib/omniauth/heart.rb
##
# This method defines the claims for the JSON Web Token (JWT) we use to
# authenticate with the authorization server.
#
# Returns:
#   +Hash+::              Set of claims for JSON Web Token
This method defines the claims for the JSON Web Token (JWT) we use to
authenticate with the authorization server.

+Hash+::              Set of claims for JSON Web Token
This method defines the claims for the JSON Web Token ( JWT ) we use to authenticate with the authorization server . + Hash + :: Set of claims for JSON Web Token
def token_endpoint_claims
        now = Time.now.to_i
        {
          iss: client_options.client_id,                
          sub: client_options.client_id,                
          aud: auth_server_config["token_endpoint"],    
          iat: now,                                     
          exp: now + options.claim_expiration,          
          jti: "#{now}/#{SecureRandom.hex(18)}",        
        }
      end
def token_endpoint_claims now = Time . now . to_i { iss : client_options . client_id , sub : client_options . client_id , aud : auth_server_config [ "token_endpoint" ] , iat : now , exp : now + options . claim_expiration , jti : "#{now}/#{SecureRandom.hex(18)}" , } end
This method defines the claims for the JSON Web Token (JWT) we use to
authenticate with the authorization server.
This method defines the claims for the JSON Web Token ( JWT ) we use to authenticate with the authorization server .
# Issuer (FHIR Client) # Subject of request (FHIR Client) # Intended audience (Authorization Server) # Time of issue # Expiration time # Unique ID for request