Skip to main content

OAuth2 / OIDC Provider configuration

  • The configuration depends on the provider, this is just a quick view, how it usually works.

Register new client and get id and secret

  • First, you need to register new client, if not already registered.
  • This should generate client id and client secret for your application.
  • You need to set this client id and client secret into your samo authentication server metadata.

Authorized urls

  • Usually, you need to allow origin and redirect urls for your client app (in this case samo authentication server).

Origin url

  • This is the url from which the request is send.
  • Many times, only the general origin is required, so the value should be just url of the root context of samo authentication server.
  • If exact url is needed, the value is {$samo-auth-server-url}/auth/oidc/authorize-client/{id}, where id is the custom identificator from you metadata (name of your metadat file), not the client id generated by provider.

Redirect url

  • This is the url, to which provider redirects after the successfull authentication.
  • The value is {$samo-auth-server-url}/auth/oidc/login/code.