Sign in with CivID

Convenient
No passwords to remember
Trusted
Protect your Civcraft reputation by proving that you're you
Safe
No need to enter your Minecraft password

Add CivID to your website

Want to verify your users? Tired of writing login and password management code? Integrating with CivID couldn't be easier.

  1. To log someone in, send them to https://id.civlabs.com/authorize.
    Provide these parameters in the URL:
    redirect_uri
    The URL of a page in your app that will handle the login.
    state
    An optional string that will get passed back with the identifying user so you can keep track of them.
  2. When the user clicks Identify, they will get redirected to your redirect_uri page with these query parameters:
    code
    An identity code that can be exchanged for the user's Minecraft username. These expire after 30 seconds.
    state
    The state you sent along with the user
  3. From your application's server, make a GET request to https://id.civlabs.com/userinfo?code= with the code you got from step 2. You will get a JSON response like this:
    {
      "user": "lgp30",
      "display_name": "LGP30"
    }
    
    user
    The verified canonical Minecraft username in all lowercase.
    display_name
    The canonical capitalization of the username. This could be changed by the user.