@axinom/mosaic-user-auth 0.4.1 → 0.4.2-rc.2
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/dist/UserServiceClient/UserServiceClient.d.ts +18 -18
- package/dist/UserServiceClient/UserServiceClient.d.ts.map +1 -1
- package/dist/common/types.d.ts +3 -3
- package/dist/common/types.d.ts.map +1 -1
- package/dist/generated/ax-auth-management-graphql.types.d.ts +90 -90
- package/dist/generated/ax-auth-management-graphql.types.d.ts.map +1 -1
- package/dist/generated/{user-service-consumer-graphql.types.d.ts → user-service-end-user-graphql.types.d.ts} +1 -1
- package/dist/generated/{user-service-consumer-graphql.types.d.ts.map → user-service-end-user-graphql.types.d.ts.map} +1 -1
- package/dist/generated/user-service-management-graphql.types.d.ts +40 -40
- package/dist/generated/user-service-management-graphql.types.d.ts.map +1 -1
- package/dist/index.es.js +37 -37
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +37 -37
- package/dist/index.js.map +1 -1
- package/dist/util/endUserApplication.d.ts +11 -0
- package/dist/util/endUserApplication.d.ts.map +1 -0
- package/dist/util/endUserApplication.spec.d.ts +2 -0
- package/dist/util/endUserApplication.spec.d.ts.map +1 -0
- package/dist/util/userAuth.d.ts +6 -6
- package/dist/util/userAuth.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/util/consumerApplication.d.ts +0 -11
- package/dist/util/consumerApplication.d.ts.map +0 -1
- package/dist/util/consumerApplication.spec.d.ts +0 -2
- package/dist/util/consumerApplication.spec.d.ts.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthenticateEndUserApplicationResponse } from 'common/types';
|
|
2
|
+
import { AuthenticateEndUserApplicationInput } from '../generated/user-service-management-graphql.types';
|
|
3
|
+
/**
|
|
4
|
+
* Authenticate an End-User Application and receive a token.
|
|
5
|
+
*
|
|
6
|
+
* @param authenticateEndUserApplicationInput An object containing the required info for End-User Application authentication.
|
|
7
|
+
* @param userServiceManagementBaseUrl Base URL of AX_AUTH management GQL schema.
|
|
8
|
+
* @returns AuthenticateEndUserApplicationResponse
|
|
9
|
+
*/
|
|
10
|
+
export declare const authenticateEndUserApplication: (authenticateEndUserApplicationInput: AuthenticateEndUserApplicationInput, userServiceManagementBaseUrl: string) => Promise<AuthenticateEndUserApplicationResponse>;
|
|
11
|
+
//# sourceMappingURL=endUserApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endUserApplication.d.ts","sourceRoot":"","sources":["../../src/util/endUserApplication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAEL,mCAAmC,EAEpC,MAAM,oDAAoD,CAAC;AAE5D;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,wCACJ,mCAAmC,gCAC1C,MAAM,KACnC,QAAQ,sCAAsC,CA4ChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endUserApplication.spec.d.ts","sourceRoot":"","sources":["../../src/util/endUserApplication.spec.ts"],"names":[],"mappings":""}
|
package/dist/util/userAuth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import {
|
|
3
|
+
import { CheckEndUserPasswordResetOtpInput, CheckEndUserSignUpOtpInput, CompleteEndUserPasswordResetInput, CompleteEndUserSignUpInput, InitiateEndUserSignUpInput } from '../generated/ax-auth-management-graphql.types';
|
|
4
4
|
/**
|
|
5
5
|
* Get the well-known endpoints exposed by ax-user-service.
|
|
6
6
|
*
|
|
@@ -25,7 +25,7 @@ export declare const performROPCSignIn: (userAuthConfig: UserAuthConfig, axAuthC
|
|
|
25
25
|
* @param axAuthManagementEndpoint Endpoint of AX_AUTH management GQL schema.
|
|
26
26
|
* @returns
|
|
27
27
|
*/
|
|
28
|
-
export declare const initiateUserSignUp: (userSignUpRequest:
|
|
28
|
+
export declare const initiateUserSignUp: (userSignUpRequest: InitiateEndUserSignUpInput, axAuthManagementEndpoint: string) => Promise<UserSignUpResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Check if a provided OTP code for User Sign Up is still valid.
|
|
31
31
|
*
|
|
@@ -34,7 +34,7 @@ export declare const initiateUserSignUp: (userSignUpRequest: InitiateConsumerSig
|
|
|
34
34
|
* @param axAuthManagementEndpoint Endpoint of AX_AUTH management GQL schema.
|
|
35
35
|
* @returns
|
|
36
36
|
*/
|
|
37
|
-
export declare const checkUserSignUpOtp: (checkUserSignUpOtpRequest:
|
|
37
|
+
export declare const checkUserSignUpOtp: (checkUserSignUpOtpRequest: CheckEndUserSignUpOtpInput, axAuthManagementEndpoint: string) => Promise<CheckUserSignUpOtpResponse>;
|
|
38
38
|
/**
|
|
39
39
|
* Verify the OTP and complete the sign-up flow
|
|
40
40
|
*
|
|
@@ -43,7 +43,7 @@ export declare const checkUserSignUpOtp: (checkUserSignUpOtpRequest: CheckConsum
|
|
|
43
43
|
* @param axAuthManagementEndpoint Endpoint of AX_AUTH management GQL schema.
|
|
44
44
|
* @returns
|
|
45
45
|
*/
|
|
46
|
-
export declare const completeUserSignUp: (completeUserSignUpRequest:
|
|
46
|
+
export declare const completeUserSignUp: (completeUserSignUpRequest: CompleteEndUserSignUpInput, axAuthManagementEndpoint: string) => Promise<CompleteUserSignUpResponse>;
|
|
47
47
|
/**
|
|
48
48
|
* Start the process of resetting the password for a registered user.
|
|
49
49
|
*
|
|
@@ -61,7 +61,7 @@ export declare const initiatePasswordReset: (email: string, axAuthClientId: stri
|
|
|
61
61
|
* @param axAuthManagementEndpoint Endpoint of AX_AUTH management GQL schema.
|
|
62
62
|
* @returns
|
|
63
63
|
*/
|
|
64
|
-
export declare const checkPasswordResetOtp: (checkPasswordResetOtpRequest:
|
|
64
|
+
export declare const checkPasswordResetOtp: (checkPasswordResetOtpRequest: CheckEndUserPasswordResetOtpInput, axAuthManagementEndpoint: string) => Promise<CheckPasswordResetOtpResponse>;
|
|
65
65
|
/**
|
|
66
66
|
* Complete the process of resetting the password for a registered user.
|
|
67
67
|
*
|
|
@@ -70,7 +70,7 @@ export declare const checkPasswordResetOtp: (checkPasswordResetOtpRequest: Check
|
|
|
70
70
|
* @param axAuthManagementEndpoint Endpoint of AX_AUTH management GQL schema.
|
|
71
71
|
* @returns
|
|
72
72
|
*/
|
|
73
|
-
export declare const completePasswordReset: (completePasswordResetRequest:
|
|
73
|
+
export declare const completePasswordReset: (completePasswordResetRequest: CompleteEndUserPasswordResetInput, axAuthManagementEndpoint: string) => Promise<CompletePasswordResetResponse>;
|
|
74
74
|
export declare const getIdpConfigurations: (userAuthConfig: UserAuthConfig) => Promise<IdpConfiguration[]>;
|
|
75
75
|
/**
|
|
76
76
|
* Get the Authentication URL for a given IDP for web based applications.
|
|
@@ -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,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,
|
|
1
|
+
{"version":3,"file":"userAuth.d.ts","sourceRoot":"","sources":["../../src/util/userAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,6BAA6B,EA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C,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBACf,cAAc,KAC7B,QAAQ,gBAAgB,EAAE,CAsB5B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,mBACL,cAAc,mBACb,MAAM,aACZ,MAAM,KAChB,GASF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,mBACX,cAAc,mBACb,MAAM,aACZ,MAAM,iBACF,MAAM,KACpB,GAMF,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,mBACT,cAAc,KAC7B,QAAQ,SAAS,CAuBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,mBACP,cAAc,KAC7B,QAAQ,SAAS,CAgBnB,CAAC;AAEF,eAAO,MAAM,UAAU,mBACL,cAAc,KAC7B,QAAQ,OAAO,CAQjB,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.4.
|
|
3
|
+
"version": "0.4.2-rc.2",
|
|
4
4
|
"description": "Integration utilities from user-service for application frontends",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test:ci": "jest --reporters=default --reporters=jest-junit --coverage --coverageReporters=cobertura --coverageReporters=html"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@axinom/mosaic-user-auth-utils": "^0.3.
|
|
29
|
+
"@axinom/mosaic-user-auth-utils": "^0.3.2-rc.2",
|
|
30
30
|
"graphql-tag": "^2.11.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "6b141812d55f32cc6e3ea8a341e946010d38b8ff"
|
|
49
49
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AuthenticateConsumerApplicationResponse } from 'common/types';
|
|
2
|
-
import { AuthenticateConsumerApplicationInput } from '../generated/user-service-management-graphql.types';
|
|
3
|
-
/**
|
|
4
|
-
* Authenticate a Consumer Application and receive a token.
|
|
5
|
-
*
|
|
6
|
-
* @param authenticateConsumerApplicationInput An object containing the required info for Consumer Application authentication.
|
|
7
|
-
* @param userServiceManagementBaseUrl Base URL of AX_AUTH management GQL schema.
|
|
8
|
-
* @returns AuthenticateConsumerApplicationResponse
|
|
9
|
-
*/
|
|
10
|
-
export declare const authenticateConsumerApplication: (authenticateConsumerApplicationInput: AuthenticateConsumerApplicationInput, userServiceManagementBaseUrl: string) => Promise<AuthenticateConsumerApplicationResponse>;
|
|
11
|
-
//# sourceMappingURL=consumerApplication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consumerApplication.d.ts","sourceRoot":"","sources":["../../src/util/consumerApplication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,cAAc,CAAC;AAEvE,OAAO,EAEL,oCAAoC,EAErC,MAAM,oDAAoD,CAAC;AAE5D;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,yCACJ,oCAAoC,gCAC5C,MAAM,KACnC,QAAQ,uCAAuC,CA4CjD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consumerApplication.spec.d.ts","sourceRoot":"","sources":["../../src/util/consumerApplication.spec.ts"],"names":[],"mappings":""}
|