Slide 23
Slide 23 text
Copyright © 2022, Oracle and/or its affiliates
利用するREST APIの概要説明 – 概要5.
23
【メソッド】
GET
【エンドポイント】
https://{上記1で控えたIdentity DomainのURL} /oauth2/v1/userinfo
【Header】
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {上記4にて取得したアクセス・トークン(access_token)}
・アプリケーションより、ログインユーザーの情報を取得するため、概要4で取得したアクセス・トークンを用いて下記のREST APIをコールします。
ユーザー ブラウザ Identity Domain
アプリケーション
(OIDC対応)
⇒レスポンス
{
"birthdate": "",
"family_name": "test",
"gender": "",
"given_name": "user001",
"name": "user001 test",
"preferred_username": "test001",
"sub": "test001",
"updated_at": 1670827316,
"website": ""
}
(参考ドキュメント)
https://docs.oracle.com/cd/E83857_01/paas/identity-cloud/rest-api/openidconnectauthcode.html
ユーザー情報要求
GET /oauth2/v1/userinfo
ユーザー情報提供
必要に応じて
概要5.