認可エンドポイント
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) を推奨。
認証
なし
パラメータ
| 名前 | 場所 | 型 | 説明 |
|---|---|---|---|
response_type * | query | stringcode | code 固定 |
client_id * | query | string | 発行されたクライアント ID |
redirect_uri | query | string (uri) | 登録済みのリダイレクト URI |
scope | query | string | スペース区切りのスコープ (例 openid noki.devices.read noki.locations.read) |
state | query | string | CSRF 対策の任意文字列。そのまま返る |
nonce | query | string | ID トークン用 (OpenID Connect) |
code_challenge | query | string | PKCE |
code_challenge_method | query | stringS256plain | PKCE |
curl の例
curl -X GET 'https://auth.agribus-connect.net/v1/oauth/authorize?response_type=<response_type>&client_id=<client_id>'レスポンス
302 — ログイン画面、または `redirect_uri?code=...&state=...` へのリダイレクト