Contents
Discovery
Machine-readable metadata. Start here: a compliant client needs nothing else than the issuer URL
https://auth.nucleoplatform.com.
Base URL, authentication and conventions of this API are on the OAuth & OpenID Connect API page.
/.well-known/openid-configurationGet OpenID Connect discovery document
OpenID Connect Discovery 1.0 document. Public, cacheable, served with
Access-Control-Allow-Origin: * so browser-based clients can read it.
Notes on the current implementation:
response_types_supportedis onlycode; implicit and hybrid flows are not available.grant_types_supportedisauthorization_codeandrefresh_token: there is noclient_credentialsgrant.code_challenge_methods_supportedis onlyS256.- ID tokens are signed with
RS256and returned by the code exchange when the scope includesopenid;claims_supportedlists every claim they can carry. Therequest,request_uriandclaimsauthorization parameters are not supported. - For everything beyond the ID token claims (companies, module access) call
userinfowith the access token.
Responses
200Discovery document.application/json
HeadersAccess-Control-Allow-Origin
issuerstring (uri)authorization_endpointstring (uri)token_endpointstring (uri)userinfo_endpointstring (uri)jwks_uristring (uri)registration_endpointstring (uri)scopes_supportedarray of stringresponse_types_supportedarray of stringgrant_types_supportedarray of stringcode_challenge_methods_supportedarray of stringtoken_endpoint_auth_methods_supportedarray of stringresponse_modes_supportedarray of stringservice_documentationstring (uri)subject_types_supportedarray of stringid_token_signing_alg_values_supportedarray of stringOne ofRS256claims_supportedarray of stringrequest_parameter_supportedbooleanOne offalserequest_uri_parameter_supportedbooleanOne offalseclaims_parameter_supportedbooleanOne offalse
curl -X GET https://auth.nucleoplatform.com/.well-known/openid-configuration \
-H 'Accept: application/json'const res = await fetch("https://auth.nucleoplatform.com/.well-known/openid-configuration", {
method: "GET",
headers: {
Accept: "application/json",
},
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('GET', 'https://auth.nucleoplatform.com/.well-known/openid-configuration', [
'headers' => [
'Accept' => 'application/json',
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();{
"issuer": "https://auth.nucleoplatform.com",
"authorization_endpoint": "https://auth.nucleoplatform.com/oauth/authorize",
"token_endpoint": "https://auth.nucleoplatform.com/oauth/token",
"userinfo_endpoint": "https://auth.nucleoplatform.com/api/oauth/userinfo",
"jwks_uri": "https://auth.nucleoplatform.com/.well-known/jwks.json",
"registration_endpoint": "https://auth.nucleoplatform.com/oauth/register",
"scopes_supported": [
"openid",
"profile",
"email",
"offline_access",
"nucleo.ai_tools"
],
"response_types_supported": [
"code"
],
"response_modes_supported": [
"query"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"code_challenge_methods_supported": [
"S256"
],
"token_endpoint_auth_methods_supported": [
"client_secret_post",
"client_secret_basic",
"none"
],
"service_documentation": "https://nucleoplatform.com/developers",
"subject_types_supported": [
"public"
],
"id_token_signing_alg_values_supported": [
"RS256"
],
"claims_supported": [
"iss",
"sub",
"aud",
"azp",
"exp",
"iat",
"jti",
"auth_time",
"nonce",
"email",
"email_verified",
"name",
"picture",
"locale"
],
"request_parameter_supported": false,
"request_uri_parameter_supported": false,
"claims_parameter_supported": false
}/.well-known/jwks.jsonGet the token signing keys
JSON Web Key Set with the RSA public key that signs Nucleo access tokens and ID tokens (RS256).
The kid is the base64url SHA-256 of the public key, so it changes only when the key is rotated;
ID tokens carry it in their header. Use it to verify a token locally (signature, exp, aud =
your client_id). Public, with Access-Control-Allow-Origin: *. Returns {"keys": []} only if
the server has no key configured.
Responses
200Key set.application/json
keysarray of objectrequiredAttributes of each item
ktystringOne ofRSAusestringOne ofsigalgstringOne ofRS256kidstringnstringModulus
estringExponent
curl -X GET https://auth.nucleoplatform.com/.well-known/jwks.json \
-H 'Accept: application/json'const res = await fetch("https://auth.nucleoplatform.com/.well-known/jwks.json", {
method: "GET",
headers: {
Accept: "application/json",
},
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('GET', 'https://auth.nucleoplatform.com/.well-known/jwks.json', [
'headers' => [
'Accept' => 'application/json',
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();{
"keys": [
{
"kty": "RSA",
"use": "sig",
"alg": "RS256",
"kid": "3rL1x0dXq6m0yBqH2l7xZr9n0bq8f4k1s2vJt8o5pWc",
"n": "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw",
"e": "AQAB"
}
]
}