Skip to content

Commit

Permalink
feat(cli): seed is_third_party flag (#57)
Browse files Browse the repository at this point in the history
* feat(cli): seed is_third_party flag

* fix(demo-app): trying to ignore the entire seeder local file from gitleaks

* Reverted .gitleaksignore change

---------

Co-authored-by: alfonsograziano <[email protected]>
Co-authored-by: Alfonso Graziano <[email protected]>
  • Loading branch information
3 people authored Jul 2, 2024
1 parent a2a31aa commit d31471c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/database/ogcio/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type SeedingApplication = {
oidc_client_metadata: string;
custom_client_metadata: string;
protected_app_metadata?: string;
is_third_party?: boolean;
is_third_party: boolean;
};

const createApplication = async (
Expand Down Expand Up @@ -55,6 +55,7 @@ const fillApplications = (
oidc_client_metadata: `{"redirectUris": ["${inputApp.redirect_uri}"], "postLogoutRedirectUris": ["${inputApp.logout_redirect_uri}"]}`,
custom_client_metadata:
'{"idTokenTtl": 3600, "corsAllowedOrigins": [], "rotateRefreshToken": true, "refreshTokenTtlInDays": 14, "alwaysIssueRefreshToken": false}',
is_third_party: inputApp.is_third_party ?? false,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"redirect_uri": "http://localhost:3001/callback",
"logout_redirect_uri": "http://localhost:3001",
"secret": "payments_app_local_secret",
"id": "2xz6sbi8ch01uhjt1oq8r"
"id": "2xz6sbi8ch01uhjt1oq8r",
"is_third_party": false
},
{
"name": "Messaging Building Block",
Expand All @@ -44,7 +45,8 @@
"redirect_uri": "http://localhost:3002/callback",
"logout_redirect_uri": "http://localhost:3002",
"secret": "messaging_app_local_secret",
"id": "4695d8onfb9f3bv18phtq"
"id": "4695d8onfb9f3bv18phtq",
"is_third_party": false
}
],
"resources": [
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/commands/database/ogcio/ogcio-seeder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export type ApplicationSeeder = {
logout_redirect_uri: string;
id: string;
secret: string;
is_third_party?: boolean;
};

export type ResourceSeeder = {
Expand Down

0 comments on commit d31471c

Please sign in to comment.