16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'app/controllers/masks/openid/discoveries_controller.rb', line 16
def new
render json:
OpenIDConnect::Discovery::Provider::Config::Response.new(
issuer: client.issuer,
authorization_endpoint: openid_authorization_url,
token_endpoint: openid_token_url,
userinfo_endpoint: openid_userinfo_url,
jwks_uri: openid_jwks_url,
scopes_supported: client.scopes,
response_types_supported: client.response_types,
grant_types_supported: client.grant_types,
claims_parameter_supported: false,
request_parameter_supported: false,
request_uri_parameter_supported: false,
subject_types_supported: [
client.pairwise_subject? ? "pairwise" : "public"
],
id_token_signing_alg_values_supported: [:RS256],
token_endpoint_auth_methods_supported: %w[
client_secret_basic
client_secret_post
],
claims_supported: %w[sub iss name email address phone_number]
)
end
|