https://widget.getcalico.com?client_id=<CLIENT ID>&code_challenge=<USER GENERATED>&code_challenge_method=<USER GENERATED>&state=<USER_GENERATED>| Required Parameters | Description |
|---|---|
client_ID | The unique identifier assigned to your application by the authorization server. It tells the server which app is making the request. This value is required in all OAuth flows and is used to associate the authorization request with your app. |
code_challenge | A hashed and encoded version of a secret string—the code_verifier—generated by the client. |
code_challenge_method | Specifies the method used to generate the code_challenge from the code_verifier. The two supported values are:S256 (recommended): Uses SHA-256 hashing. plain: Sends the code_verifier as-is (less secure; not recommended unless required by the server). |
state | This is a UUID used to verify that the callback is from the correct session. |
code_verifier to be used in the next step with the code challenge.code_verifier, apply a hash function to the verifier. This typically uses SHA-256. The code_challenge_method specifies which hashing algorithm was used. In the example below, the method is S256, indicating SHA-256 was applied.POST https://login.getcalico.com/oauth/token| Required parameters | Description |
|---|---|
code | The authorization code received after user login |
code_verifier | The original code verifier used to generate the code challenge |
redirect_uri | The URI the user is redirected to which must match the one used in the initial authorization request |
client_id | Your app’s client ID |
curl -X POST https://login.getcalico.com/oauth/token\
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=authorization_code" \
-d "code=AUTHORIZATION_CODE" \
-d "client_id=YOUR_CLIENT_ID" \
-d "redirect_uri=https://yourapp.com/callback" \
-d "code_verifier=YOUR_CODE_VERIFIER"| Required parameters | Description |
|---|---|
code | The authorization code received after user login |
client_id | Your app’s client ID |
client_secret | The client secret provisioned to your application |
redirect_uri | The URI the user is redirected to which must match the one used in the initial authorization request |
curl -X POST https://login.getcalico.com/oauth/token\
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=authorization_code" \
-d "code=AUTHORIZATION_CODE" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "redirect_uri=https://yourapp.com/callback"