Class: Api::OpenidConnect::DiscoveryController

Inherits:
ApplicationController show all
Defined in:
app/controllers/api/openid_connect/discovery_controller.rb

Instance Method Summary collapse

Instance Method Details

#configurationObject


29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'app/controllers/api/openid_connect/discovery_controller.rb', line 29

def configuration
  render json: OpenIDConnect::Discovery::Provider::Config::Response.new(
    issuer:                                      AppConfig.environment.url,
    registration_endpoint:                       api_openid_connect_clients_url,
    authorization_endpoint:                      new_api_openid_connect_authorization_url,
    token_endpoint:                              api_openid_connect_access_tokens_url,
    userinfo_endpoint:                           ,
    jwks_uri:                                    api_openid_connect_url,
    scopes_supported:                            Api::OpenidConnect::Authorization::SCOPES,
    response_types_supported:                    Api::OpenidConnect::OAuthApplication.available_response_types,
    request_object_signing_alg_values_supported: %i(none),
    request_parameter_supported:                 true,
    request_uri_parameter_supported:             true,
    subject_types_supported:                     %w(public pairwise),
    id_token_signing_alg_values_supported:       %i(RS256),
    token_endpoint_auth_methods_supported:       %w(client_secret_basic client_secret_post private_key_jwt),
    claims_parameter_supported:                  true,
    claims_supported:                            %w(sub name nickname profile picture),
    userinfo_signing_alg_values_supported:       %w(none)
  )
end