By Admin on Thursday, 26 November 2020
Category: All

OAuth2 Server Endpoints

By default, the OAuth2 Server uses the following Endpoints:

  Authorization: /sgc/oauth2/auth

  Token: /sgc/oauth2/token

Which means that if your server listens on IP 80.54.41.30 and port 8443, the full OAuth2 Endpoints will be:

  Authorization: https://80.54.41.30:8443/sgc/oauth2/auth

  Token: https://80.54.41.30:8443/sgc/oauth2/token

Customize Endpoints

This Endpoints can be modified easily, just access to OAuth2Options property of component and modify Authorization and Token URLs.

Example: if your endpoints must be

  Authorization: https://80.54.41.30:8443/authentication/auth

  Token: https://80.54.41.30:8443/authentication/token

Set the OAuth2Options property with the following values:

  OAuth2Options.Authorization.URL = /authentication/auth

  OAuth2Options.Token.URL = /authentication/token 

Related Posts