Class: Shakha::OpenidController

Inherits:
ApplicationController show all
Defined in:
app/controllers/shakha/openid_controller.rb

Instance Method Summary collapse

Instance Method Details

#configurationObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/controllers/shakha/openid_controller.rb', line 5

def configuration
  render json: {
    issuer: Shakha.config.issuer,
    authorization_endpoint: "#{Shakha.config.service_base_url}/auth/shakha/authorize",
    token_endpoint: "#{Shakha.config.service_base_url}/auth/shakha/token",
    userinfo_endpoint: "#{Shakha.config.service_base_url}/auth/shakha/session",
    jwks_uri: "#{Shakha.config.service_base_url}/.well-known/jwks.json",
    response_types_supported: ["code"],
    grant_types_supported: ["authorization_code"],
    code_challenge_methods_supported: ["S256"],
    subject_types_supported: ["pairwise"],
    id_token_signing_alg_values_supported: ["ES256"],
    scopes_supported: ["openid", "email", "profile"]
  }, content_type: "application/json"
end