Credential Management¶
Manage user authentication credentials.
List Credentials¶
curl -X GET http://localhost:8000/api/sso/v1/users/USER_ID/credentials \
-H "Authorization: Bearer TOKEN"
Add Credential¶
curl -X POST http://localhost:8000/api/sso/v1/users/USER_ID/credentials \
-H "Authorization: Bearer TOKEN" \
-d '{
"type": "oauth",
"provider": "google",
"external_id": "google_user_id"
}'
Remove Credential¶
curl -X DELETE http://localhost:8000/api/sso/v1/users/USER_ID/credentials/CRED_ID \
-H "Authorization: Bearer TOKEN"
Credential Types¶
password- Email/passwordoauth- OAuth providers (Google, GitHub, etc.)passkey- WebAuthn credentialsotp- Phone/email OTP