@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.
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=endUserApplication.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endUserApplication.spec.d.ts","sourceRoot":"","sources":["../../src/util/endUserApplication.spec.ts"],"names":[],"mappings":""}
@@ -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 { CheckConsumerPasswordResetOtpInput, CheckConsumerSignUpOtpInput, CompleteConsumerPasswordResetInput, CompleteConsumerSignUpInput, InitiateConsumerSignUpInput } from '../generated/ax-auth-management-graphql.types';
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: InitiateConsumerSignUpInput, axAuthManagementEndpoint: string) => Promise<UserSignUpResponse>;
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: CheckConsumerSignUpOtpInput, axAuthManagementEndpoint: string) => Promise<CheckUserSignUpOtpResponse>;
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: CompleteConsumerSignUpInput, axAuthManagementEndpoint: string) => Promise<CompleteUserSignUpResponse>;
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: CheckConsumerPasswordResetOtpInput, axAuthManagementEndpoint: string) => Promise<CheckPasswordResetOtpResponse>;
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: CompleteConsumerPasswordResetInput, axAuthManagementEndpoint: string) => Promise<CompletePasswordResetResponse>;
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,6BAA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B,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.1",
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.1",
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": "ace58c0270cf706c110de34936e92330e5e6b96b"
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=consumerApplication.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consumerApplication.spec.d.ts","sourceRoot":"","sources":["../../src/util/consumerApplication.spec.ts"],"names":[],"mappings":""}