Secure App Samples - API Index

MethodEndpointAuthDescription
GET /token No Auth Token Viewer - Cognito Hosted UI でトークン取得
GET /hello Access Token openid 基本動作確認
GET /userinfo Access Token openid ユーザー情報 (Cognito /oauth2/userInfo 経由)
GET /protected/read Access Token secure-sample-api/read スコープ検証 (read)
POST /protected/write Access Token secure-sample-api/write スコープ検証 (write)

※ 認証付きエンドポイントは curl で Authorization: Bearer <access_token> ヘッダが必要です。
まず /token でトークンを取得してください。