EN / FR / DE

3.1 Prerequisites

RequirementsAuthorization Code FlowClient Credentials Flow
User InteractionYes, the user must log in and grant the application accessNo, no user interaction required
client_idYes, always required to identify the applicationYes, always required to identify the application
client_secretThe secret is created by us. We provide it to you.You must generate it yourself via apps.hin.ch.
Authorization CodeYes, after user login, the application receives an authorization codeNo, not used, only initial.
Redirect URIYes, the URL to which the user is redirected after login with the access code in the URL.No, not required
Access TokenYes, requested after exchanging the authorization codeYes, requested directly after requesting client_credentials
StateHas no significance, but must be provided. The content is irrelevant.Has no significance, but must be provided. The content is irrelevant.
Grant Typeauthorization_code (Authorization Code Flow)client_credentials (Application access without user)
Token GroupYes, always required.Yes, always required.
Nevis RoleYes, always required.Yes, always required.
codeYes, always required. This is the Auth Code.Yes, always required. This is the Auth Code.