mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
3f5e7e2e14
* Proof of concept authorize call * Authorize and Refresh endpoints done * OAuth2 editor started * Some small fixes * Set OAuth headers on request * Started on some OAuth tests * Updated network logic with new OAuth API * OAuth forms and refactor flows * Fix grant type handling * Moved auth handling out of render pipeline * Fixed legacy auth header * Fix vertical center * Prompt user on auth type change * Refresh tokens working (I think) and better UI * Catch same type auth change * POC refresh token and small refactor * Better token handling * LOading state to token refresh * Show o-auth-2 errors * Some minor updates
26 lines
1016 B
JavaScript
26 lines
1016 B
JavaScript
export const GRANT_TYPE_AUTHORIZATION_CODE = 'authorization_code';
|
|
export const GRANT_TYPE_IMPLICIT = 'implicit';
|
|
export const GRANT_TYPE_PASSWORD = 'password';
|
|
export const GRANT_TYPE_CLIENT_CREDENTIALS = 'client_credentials';
|
|
|
|
export const RESPONSE_TYPE_CODE = 'code';
|
|
export const RESPONSE_TYPE_TOKEN = 'token';
|
|
|
|
export const P_ACCESS_TOKEN = 'access_token';
|
|
export const P_CLIENT_ID = 'client_id';
|
|
export const P_CLIENT_SECRET = 'client_secret';
|
|
export const P_CODE = 'code';
|
|
export const P_ERROR = 'error';
|
|
export const P_ERROR_DESCRIPTION = 'error_description';
|
|
export const P_ERROR_URI = 'error_uri';
|
|
export const P_EXPIRES_IN = 'expires_in';
|
|
export const P_GRANT_TYPE = 'grant_type';
|
|
export const P_PASSWORD = 'password';
|
|
export const P_REDIRECT_URI = 'redirect_uri';
|
|
export const P_REFRESH_TOKEN = 'refresh_token';
|
|
export const P_RESPONSE_TYPE = 'response_type';
|
|
export const P_SCOPE = 'scope';
|
|
export const P_STATE = 'state';
|
|
export const P_TOKEN_TYPE = 'token_type';
|
|
export const P_USERNAME = 'username';
|