Authorization endpoint
GEThttps://auth.agribus-connect.net/v1/oauth/authorize
OAuth 2.0 認可コードフロー (OpenID Connect 認証リクエスト) の入口。ブラウザでユーザーを誘導する。
未ログインならログイン画面へ、ログイン済みなら同意後に redirect_uri へ code と state を付けてリダイレクトする。response_type は code のみ対応。PKCE (code_challenge / code_challenge_method=S256) を推奨。
Authentication
None
Parameters
| Name | In | Type | Description |
|---|---|---|---|
response_type * | query | stringcode | Must be code |
client_id * | query | string | Issued client ID |
redirect_uri | query | string (uri) | Registered redirect URI |
scope | query | string | Space-separated scopes (e.g. openid noki.devices.read noki.locations.read) |
state | query | string | Arbitrary string for CSRF protection. Returned unchanged |
nonce | query | string | For the ID token (OpenID Connect) |
code_challenge | query | string | PKCE |
code_challenge_method | query | stringS256plain | PKCE |
curl example
curl -X GET 'https://auth.agribus-connect.net/v1/oauth/authorize?response_type=<response_type>&client_id=<client_id>'Responses
302 — Redirect to the login screen or to `redirect_uri?code=...&state=...`