デフォルトでは、OAuth2 サーバーは以下のエンドポイントを使用します:
Authorization: /sgc/oauth2/auth
Token: /sgc/oauth2/token
Revocation: /sgc/oauth2/revoke (POST) - RFC 7009 に従ってトークンを失効させます。
Introspection: /sgc/oauth2/introspect (POST) - RFC 7662 に基づくトークンメタデータを返します。
デバイス認証: /sgc/oauth2/device(POST)- RFC 8628 に従ってデバイスコードを発行します
Device Verification: /sgc/oauth2/device/verify (GET/POST) - ユーザー検証ページ
つまり、サーバーが IP 80.54.41.30 のポート 8443 でリッスンしている場合、完全な OAuth2 エンドポイントは次のようになります:
Authorization: https://80.54.41.30:8443/sgc/oauth2/auth
Token: https://80.54.41.30:8443/sgc/oauth2/token
失効: https://80.54.41.30:8443/sgc/oauth2/revoke
Introspection: https://80.54.41.30:8443/sgc/oauth2/introspect
Device Authorization: https://80.54.41.30:8443/sgc/oauth2/device
デバイス検証: https://80.54.41.30:8443/sgc/oauth2/device/verify
これらのエンドポイントは簡単に変更できます。コンポーネントのOAuth2Options プロパティにアクセスし、Authorization URLとToken URLを変更するだけです。
例: エンドポイントが必要な場合 は
Authorization: https://80.54.41.30:8443/authentication/auth
Token: https://80.54.41.30:8443/authentication/token
OAuth2Options プロパティを以下の値で設定します:
OAuth2Options.Authorization.URL = /authentication/auth
OAuth2Options.Token.URL = /authentication/token
同じアプローチが他のエンドポイントにも適用されます:
OAuth2Options.Revocation.URL = /authentication/revoke
OAuth2Options.Introspection.URL = /authentication/introspect
OAuth2Options.DeviceAuthorization.URL = /authentication/device
OAuth2Options.DeviceAuthorization.VerificationURL = /authentication/device/verify