@atlaskit/outbound-auth-flow-client
Advanced tools
Comparing version 3.2.1 to 3.3.0
@@ -12,3 +12,7 @@ { | ||
], | ||
"exclude": ["../src/**/__tests__/*"] | ||
} | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*" | ||
] | ||
} |
# @atlaskit/outbound-auth-flow-client | ||
## 3.3.0 | ||
### Minor Changes | ||
- [`65cad419e85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65cad419e85) - Add 'AuthClientOAuth2.AuthError' error type | ||
## 3.2.1 | ||
@@ -4,0 +10,0 @@ |
@@ -22,3 +22,3 @@ "use strict"; | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
@@ -25,0 +25,0 @@ var AuthError = /*#__PURE__*/function (_Error) { |
@@ -11,6 +11,8 @@ "use strict"; | ||
// representing when the authentication window is closed by the user | ||
// 'authclientoauth2.autherror' is added to represent errors from | ||
// outbound-auth | ||
var isOfTypeAuthError = function isOfTypeAuthError(inputString) { | ||
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable'].includes(inputString); | ||
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable', 'authclientoauth2.autherror'].includes(inputString); | ||
}; | ||
exports.isOfTypeAuthError = isOfTypeAuthError; |
{ | ||
"name": "@atlaskit/outbound-auth-flow-client", | ||
"version": "3.2.1" | ||
"version": "3.3.0" | ||
} |
// See https://tools.ietf.org/html/rfc6749#section-4.1.2.1 | ||
// 'auth_window_closed' is returned in addition to types from this RFC, | ||
// representing when the authentication window is closed by the user | ||
// 'authclientoauth2.autherror' is added to represent errors from | ||
// outbound-auth | ||
export const isOfTypeAuthError = inputString => { | ||
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable'].includes(inputString); | ||
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable', 'authclientoauth2.autherror'].includes(inputString); | ||
}; |
{ | ||
"name": "@atlaskit/outbound-auth-flow-client", | ||
"version": "3.2.1" | ||
"version": "3.3.0" | ||
} |
@@ -9,3 +9,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
@@ -12,0 +12,0 @@ export var AuthError = /*#__PURE__*/function (_Error) { |
// See https://tools.ietf.org/html/rfc6749#section-4.1.2.1 | ||
// 'auth_window_closed' is returned in addition to types from this RFC, | ||
// representing when the authentication window is closed by the user | ||
// 'authclientoauth2.autherror' is added to represent errors from | ||
// outbound-auth | ||
export var isOfTypeAuthError = function isOfTypeAuthError(inputString) { | ||
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable'].includes(inputString); | ||
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable', 'authclientoauth2.autherror'].includes(inputString); | ||
}; |
{ | ||
"name": "@atlaskit/outbound-auth-flow-client", | ||
"version": "3.2.1" | ||
"version": "3.3.0" | ||
} |
export declare class AuthError extends Error { | ||
readonly message: string; | ||
readonly type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | undefined; | ||
constructor(message: string, type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | undefined); | ||
readonly type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | "authclientoauth2.autherror" | undefined; | ||
constructor(message: string, type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | "authclientoauth2.autherror" | undefined); | ||
} |
@@ -1,2 +0,2 @@ | ||
export declare type AuthErrorType = 'auth_window_closed' | 'invalid_request' | 'unauthorized_client' | 'access_denied' | 'unsupported_response_type' | 'invalid_scope' | 'server_error' | 'temporarily_unavailable'; | ||
export declare type AuthErrorType = 'auth_window_closed' | 'invalid_request' | 'unauthorized_client' | 'access_denied' | 'unsupported_response_type' | 'invalid_scope' | 'server_error' | 'temporarily_unavailable' | 'authclientoauth2.autherror'; | ||
export declare const isOfTypeAuthError: (inputString: string) => inputString is AuthErrorType; |
{ | ||
"name": "@atlaskit/outbound-auth-flow-client", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"description": "Front-end library for starting outbound auth flows", | ||
@@ -29,2 +29,3 @@ "publishConfig": { | ||
"@atlaskit/docs": "*", | ||
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1", | ||
"typescript": "3.9.6" | ||
@@ -35,3 +36,4 @@ }, | ||
"ui" | ||
] | ||
], | ||
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20960
5306
332
3