OpenID設定を取得
curl --request GET \
--url https://{issuer}/.well-known/openid-configurationimport requests
url = "https://{issuer}/.well-known/openid-configuration"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{issuer}/.well-known/openid-configuration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{issuer}/.well-known/openid-configuration",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{issuer}/.well-known/openid-configuration"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{issuer}/.well-known/openid-configuration")
.asString();require 'uri'
require 'net/http'
url = URI("https://{issuer}/.well-known/openid-configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"issuer": "https://your-app.auth.didit.me",
"authorization_endpoint": "https://your-app.auth.didit.me/sign-in",
"token_endpoint": "https://your-app.auth.didit.me/token/",
"jwks_uri": "https://your-app.auth.didit.me/.well-known/jwks.json",
"response_types_supported": [
"code"
],
"response_modes_supported": [
"query"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"subject_types_supported": [
"public"
],
"id_token_signing_alg_values_supported": [
"ES256"
],
"token_endpoint_auth_methods_supported": [
"none"
],
"code_challenge_methods_supported": [
"S256"
],
"scopes_supported": [
"openid",
"email",
"phone",
"profile",
"offline_access"
],
"claims_supported": [
"iss",
"aud",
"sub",
"sid",
"auth_time",
"nonce",
"vendor_data",
"amr",
"org",
"verified",
"act",
"email",
"email_verified",
"name",
"phone_number"
]
}
APIリファレンス
OpenID Configurationの取得 | Didit 認証API
GET /.well-known/openid-configuration は、DiditアプリケーションのOpenID Connectディスカバリードキュメント(issuer、エンドポイント、グラント、ES256、クレーム)を返します。
GET
/
.well-known
/
openid-configuration
OpenID設定を取得
curl --request GET \
--url https://{issuer}/.well-known/openid-configurationimport requests
url = "https://{issuer}/.well-known/openid-configuration"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{issuer}/.well-known/openid-configuration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{issuer}/.well-known/openid-configuration",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{issuer}/.well-known/openid-configuration"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{issuer}/.well-known/openid-configuration")
.asString();require 'uri'
require 'net/http'
url = URI("https://{issuer}/.well-known/openid-configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"issuer": "https://your-app.auth.didit.me",
"authorization_endpoint": "https://your-app.auth.didit.me/sign-in",
"token_endpoint": "https://your-app.auth.didit.me/token/",
"jwks_uri": "https://your-app.auth.didit.me/.well-known/jwks.json",
"response_types_supported": [
"code"
],
"response_modes_supported": [
"query"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"subject_types_supported": [
"public"
],
"id_token_signing_alg_values_supported": [
"ES256"
],
"token_endpoint_auth_methods_supported": [
"none"
],
"code_challenge_methods_supported": [
"S256"
],
"scopes_supported": [
"openid",
"email",
"phone",
"profile",
"offline_access"
],
"claims_supported": [
"iss",
"aud",
"sub",
"sid",
"auth_time",
"nonce",
"vendor_data",
"amr",
"org",
"verified",
"act",
"email",
"email_verified",
"name",
"phone_number"
]
}
Authenticationは新しい機能です。これらのエンドポイントは
https://<name>.auth.didit.meのようなアプリケーションの発行者から提供され、DiditのAPIキーを受け付けることはありません。レスポンス
ディスカバリードキュメントです。
発行者のOpenID Connectディスカバリードキュメントです。エンドポイントは自分で組み立てず、ここから読み取ってください。
発行者で、末尾のスラッシュを含まないアプリケーションのサインインオリジンです。すべてのトークンのissはこの値と一致します。
例:
"https://your-app.auth.didit.me"
ホスト型サインインページ(/sign-in)です。
例:
"https://your-app.auth.didit.me/sign-in"
例:
"https://your-app.auth.didit.me/token/"
例:
"https://your-app.auth.didit.me/.well-known/jwks.json"
例:
["code"]
例:
["query"]
例:
["authorization_code", "refresh_token"]
例:
["public"]
例:
["ES256"]
none: クライアントは公開クライアントで、シークレットを送信しません。
例:
["none"]
例:
["S256"]
例:
[ "openid", "email", "phone", "profile", "offline_access" ]
例:
[ "iss", "aud", "sub", "sid", "auth_time", "nonce", "vendor_data", "amr", "org", "verified", "act", "email", "email_verified", "name", "phone_number" ]
最終更新日 2026年11月1日