Skip to content
Snippets Groups Projects
Verified Commit 12fa36bd authored by Mark's avatar Mark
Browse files

Add possibility of multiple grant and response types

parent c03b30ec
No related branches found
No related tags found
2 merge requests!10Resolve "Remove "@ory" repo and use direct refs instead",!9444 nextcloud single sign on
Pipeline #1709 failed with stage
in 1 minute and 50 seconds
......@@ -46,9 +46,9 @@ spec:
- name: TOKEN_ENDPOINT_AUTH_METHOD
value: {{ .tokenEndpointAuthMethod | quote }}
- name: RESPONSE_TYPES
value: {{ .responseTypes | quote }}
value: "{{- range .responseTypes }}\"{{ . }}\",{{- end }}"
- name: GRANT_TYPES
value: {{ .grantTypes | quote }}
value: "{{- range .grantTypes }}\"{{ . }}\",{{- end }}"
command: ["/bin/bash", "-c"]
args:
- >
......@@ -62,8 +62,8 @@ spec:
\"logo_uri\": \"$CLIENT_LOGO_URI\",
\"redirect_uris\": [\"$REDIRECT_URI\"],
\"scope\": \"$SCOPES\",
\"grant_types\": [\"$GRANT_TYPES\"],
\"response_types\": [\"$RESPONSE_TYPES\"],
\"grant_types\": [$GRANT_TYPES\"\"],
\"response_types\": [$RESPONSE_TYPES\"\"],
\"token_endpoint_auth_method\": \"client_secret_post\"}" \
http://{{ $.Release.Name }}-hydra-admin:4445/clients
{{- end }}
......@@ -16,7 +16,7 @@ loginProviderImage:
singleSignOnHost: &SSO_HOST sso.oas.example.net
userpanel:
# userpanel.applicationName is the name of the application. This is a duplicate of
# userpanel.applicationName is the name of the application. This is a duplicate of
# userbackend.applications[0].name but helm < 3.0 doesn't supprt direct references to
# list items in template files so we need to keep it for now
applicationName: &USER_PANEL user-panel
......@@ -129,8 +129,10 @@ oAuthClients:
tokenEndpointAuthMethod: "client_secret_basic"
# oAuthClients[].responseTypes specifies the type of ressource an oAuth client uses to perform
# authentication and userinfo requests
responseTypes: "token"
responseTypes:
- "token"
# oAuthClients[].grantTypes specifies the way in which the client retrieves an access token
# from the oAuth server
grantTypes: "implicit"
grantTypes:
- "implicit"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment