For developers
Sign in with Mpuza for your application.
People use the Mpuza account they already have. Your application gets their name and email address, and never sees their password.
Set up first, before anything else
Your application needs its own client ID and secret. Make them on your developer dashboard.
Then ask to go liveThe Mpuza team checks the name and the addresses. After that, anyone with a Mpuza account can sign in.Documentation
Start where you are
Pick what you need. Each card opens the documentation at that place, and you can scroll on from there to the end.
The calls
Every call, one standard
Sign in with Mpuza uses OpenID Connect, so a ready-made library in your language can make these calls. Each one has code samples and a button to try it.
/.well-known/openid-configurationDocs
Send the person to sign in
Your server sends the person's browser to this address. They sign in at Mpuza and come back to your return address with a code.
GET/oauth/authorizeDocs
Swap the code for the proof of sign-in
From your server only. You send the code with your client ID and secret, and get the ID token (the proof of who signed in) and an access token. The code works once, for 60 seconds.
POST/oauth/tokenDocs
Mpuza's public keys
The keys that prove an ID token really comes from Mpuza. Use the one whose kid matches the token.
GET/.well-known/jwks.jsonDocs
Your ID token, checked
What your code must do with the ID token: every check listed in this step. Try it shows each one on the ID token of your own sign-in.
GET/.well-known/jwks.jsonDocs
Read the information about the person
With the access token your server reads everything the person allowed: the name and email, and every field of the approved groups. Try it here asks for all of them.
GET/oauth/userinfoDocs
Sign out at Mpuza too
End your own session first, then send the browser here. Mpuza asks the person to confirm and sends them back to your sign-out return address.
GET/oauth/logoutDocs
Cancel a token
From your server. Makes an access token stop working before its hour is over.
POST/oauth/revokeDocsHow it works
From a button to a signed-in person
- 1Register your application
Log in as a developer and create it. You get a client ID and a secret.
- 2Add the button
Your "Sign in with Mpuza" button sends the person to Mpuza, with PKCE protecting the sign-in.
- 3Swap the code
The person comes back with a short code. Your server swaps it for an ID token and checks the signature.
- 4Open their account
Match the person to an account of your own, and show your application as signed in.
What travels where
- The password is typed on Mpuza's page, never in your application
- The code works once and only for a short time
- You check the ID token with Mpuza's public keys
Safe by design
The password stays with Mpuza
Your application learns who the person is without ever holding the thing that protects their account.
- 1Only what is approved
An application gets the name and email address. Anything more has to be approved by the Mpuza team, one group at a time, and allowed by the person.
- 2The person decides
Before an application made by a developer learns anything, the person sees its address and chooses Allow or Cancel.
- 3Checked before going live
Changing the name or an address of a live application puts it back in testing until the Mpuza team looks again.
Going live
Test first. Go live when it works.
Every new application starts in testing. Its stage is shown on your developer dashboard.
Testing
Where you build- Works as soon as you register it
- Only you and your testers can sign in
- Up to 10 testers
- Change the name and addresses when you need to
Waiting
The team is checking- You press Ask to go live
- The Mpuza team sees the name and the addresses
- You and your testers can keep signing in
- You can take the request back
Live
Open to everyone- Anyone with a Mpuza account can sign in
- The settings your application uses stay the same
- Your dashboard counts the sign-ins
- A new name or address is checked again
Register your application and try your first sign-in.
You need a Mpuza account. Log in with it as a developer.