Client Registration¶
Manage OAuth client applications.
Register Client¶
curl -X POST http://localhost:8000/api/sso/v1/oauth/clients \
-H "Authorization: Bearer TOKEN" \
-d '{
"name": "My App",
"description": "Mobile application",
"redirect_uris": [
"https://myapp.com/callback",
"myapp://oauth/callback"
],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "client_secret_post",
"scopes": ["openid", "profile", "email"]
}'
List Clients¶
Update Client¶
curl -X PATCH http://localhost:8000/api/sso/v1/oauth/clients/CLIENT_ID \
-H "Authorization: Bearer TOKEN" \
-d '{"redirect_uris": ["https://myapp.com/callback"]}'
Rotate Secret¶
curl -X POST http://localhost:8000/api/sso/v1/oauth/clients/CLIENT_ID/rotate-secret \
-H "Authorization: Bearer TOKEN"