@axinom/mosaic-user-auth 0.3.6-rc.1 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/UserServiceClient/UserServiceClient.d.ts +67 -14
- package/dist/UserServiceClient/UserServiceClient.d.ts.map +1 -1
- package/dist/UserServiceProvider/UserServiceProvider.d.ts +7 -3
- package/dist/UserServiceProvider/UserServiceProvider.d.ts.map +1 -1
- package/dist/common/types.d.ts +1 -0
- package/dist/common/types.d.ts.map +1 -1
- package/dist/generated/user-service-management-graphql.types.d.ts +295 -3
- package/dist/generated/user-service-management-graphql.types.d.ts.map +1 -1
- package/dist/index.es.js +193 -38
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +192 -37
- package/dist/index.js.map +1 -1
- package/dist/util/userAuth.d.ts +28 -2
- package/dist/util/userAuth.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/util/userAuth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckPasswordResetOtpResponse, CheckUserSignUpOtpResponse, CompletePasswordResetResponse, CompleteUserSignUpResponse, IdpConfiguration, InitiatePasswordResetResponse, ROPCSignInResponse, UserSignUpResponse, WellKnownEndpointResponse } from '@axinom/mosaic-user-auth-utils';
|
|
1
|
+
import { CheckPasswordResetOtpResponse, CheckUserSignUpOtpResponse, CompletePasswordResetResponse, CompleteUserSignUpResponse, DecryptNativeCookieResponse, IdpConfiguration, InitiatePasswordResetResponse, ROPCSignInResponse, UserSignUpResponse, WellKnownEndpointResponse } from '@axinom/mosaic-user-auth-utils';
|
|
2
2
|
import { ROPCSignInRequest, UserAuthConfig, UserToken } from '../common/types';
|
|
3
3
|
import { CheckConsumerPasswordResetOtpInput, CheckConsumerSignUpOtpInput, CompleteConsumerPasswordResetInput, CompleteConsumerSignUpInput, InitiateConsumerSignUpInput } from '../generated/ax-auth-management-graphql.types';
|
|
4
4
|
/**
|
|
@@ -71,7 +71,23 @@ export declare const checkPasswordResetOtp: (checkPasswordResetOtpRequest: Check
|
|
|
71
71
|
* @returns
|
|
72
72
|
*/
|
|
73
73
|
export declare const completePasswordReset: (completePasswordResetRequest: CompleteConsumerPasswordResetInput, axAuthManagementEndpoint: string) => Promise<CompletePasswordResetResponse>;
|
|
74
|
-
export declare const getIdpConfigurations: (userAuthConfig: UserAuthConfig
|
|
74
|
+
export declare const getIdpConfigurations: (userAuthConfig: UserAuthConfig) => Promise<IdpConfiguration[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Get the Authentication URL for a given IDP for web based applications.
|
|
77
|
+
*
|
|
78
|
+
* @param userAuthConfig The UserAuthConfig object.
|
|
79
|
+
* @param idpConnectionId IDP Connection ID that should be authenticated with.
|
|
80
|
+
* @param returnUrl The return URL which the User Service will redirect after completing the authentication flow.
|
|
81
|
+
* @returns a URL object
|
|
82
|
+
*/
|
|
83
|
+
export declare const getAuthUrl: (userAuthConfig: UserAuthConfig, idpConnectionId: string, returnUrl: string) => URL;
|
|
84
|
+
/**
|
|
85
|
+
* TODO: Move this to the react-native-lib.
|
|
86
|
+
* react-native does not support URL.searchParams.set() method.
|
|
87
|
+
* We need to explicitly install react-native-url-polyfill package.
|
|
88
|
+
* Best if we do that in react-native specific user-auth-lib. *
|
|
89
|
+
*/
|
|
90
|
+
export declare const getNativeAuthUrl: (userAuthConfig: UserAuthConfig, idpConnectionId: string, returnUrl: string, encryptionKey: string) => URL;
|
|
75
91
|
/**
|
|
76
92
|
* Returns a new user token by invoking the User Auth API
|
|
77
93
|
*/
|
|
@@ -81,4 +97,14 @@ export declare const fetchUserToken: (userAuthConfig: UserAuthConfig) => Promise
|
|
|
81
97
|
*/
|
|
82
98
|
export declare const getUserToken: (userAuthConfig: UserAuthConfig) => Promise<UserToken>;
|
|
83
99
|
export declare const logoutUser: (userAuthConfig: UserAuthConfig) => Promise<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Decrypts an encrypted User Token Cookie
|
|
102
|
+
*
|
|
103
|
+
* @param encryptedCookie
|
|
104
|
+
* @param key
|
|
105
|
+
* @param userServiceManagementEndpoint
|
|
106
|
+
* @returns
|
|
107
|
+
*/
|
|
108
|
+
export declare const decryptNativeCookie: (encryptedCookie: string, key: string, userServiceManagementEndpoint: string) => Promise<DecryptNativeCookieResponse>;
|
|
109
|
+
export declare const resetCurrentUerToken: () => void;
|
|
84
110
|
//# sourceMappingURL=userAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userAuth.d.ts","sourceRoot":"","sources":["../../src/util/userAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAE1B,gBAAgB,EAGhB,6BAA6B,EAE7B,kBAAkB,EAKlB,kBAAkB,EAElB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EACL,kCAAkC,EAElC,2BAA2B,EAK3B,kCAAkC,EAGlC,2BAA2B,EAK3B,2BAA2B,EAE5B,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"userAuth.d.ts","sourceRoot":"","sources":["../../src/util/userAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAE1B,2BAA2B,EAE3B,gBAAgB,EAGhB,6BAA6B,EAE7B,kBAAkB,EAKlB,kBAAkB,EAElB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EACL,kCAAkC,EAElC,2BAA2B,EAK3B,kCAAkC,EAGlC,2BAA2B,EAK3B,2BAA2B,EAE5B,MAAM,+CAA+C,CAA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AAS,CAuBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,mBACP,cAAc,KAC7B,QAAQ,SAAS,CAgBnB,CAAC;AAEF,eAAO,MAAM,UAAU,mBACL,cAAc,KAC7B,QAAQ,OAAO,CAOjB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,oBACb,MAAM,OAClB,MAAM,iCACoB,MAAM,KACpC,QAAQ,2BAA2B,CAiCrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,IAEvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-user-auth",
|
|
3
|
-
"version": "0.3.6
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Integration utilities from user-service for application frontends",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"test:ci": "jest --reporters=default --reporters=jest-junit --coverage --coverageReporters=cobertura --coverageReporters=html"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@axinom/mosaic-user-auth-utils": "^0.2.5
|
|
31
|
+
"@axinom/mosaic-user-auth-utils": "^0.2.5",
|
|
32
32
|
"graphql-tag": "^2.11.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "996089c4c07edb4bdf18eb9bdc51f0d97ea9efb8"
|
|
51
51
|
}
|