Skip to content

Commit

Permalink
(improvement) Move sign in step constants to the `application-mangeme…
Browse files Browse the repository at this point in the history
…nt.ts`
  • Loading branch information
Achintha Isuru committed Nov 14, 2023
1 parent 6c773e4 commit 77bcc6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/console/src/extensions/configs/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ export const applicationConfig: ApplicationConfig = {
tenantDomain: string
): number => {
if (clientId === getTryItClientId(tenantDomain)) {
return 2; // For Asgardeo Try It App
return ApplicationManagementConstants.TRY_IT_SIGNIN_STEP; // For Asgardeo Try It App
} else {
return 3; // For other applications
return ApplicationManagementConstants.APPLICATION_SIGNIN_STEP; // For other applications
}
},
getTabExtensions: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,16 @@ export class ApplicationManagementConstants {
* Application state param to be sent in the routing.
*/
public static readonly APPLICATION_STATE: string = "application";

/**
* Sign in step of the try it application.
*/
public static readonly TRY_IT_SIGNIN_STEP: number = 2;

/**
* Sign in step of other applications.
*/
public static readonly APPLICATION_SIGNIN_STEP: number = 3;
}

export enum ShareWithOrgStatus {
Expand Down

0 comments on commit 77bcc6d

Please sign in to comment.