-
-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): add POST /saml-applications
and DEL /saml-applications/:id
APIs
#6822
base: master
Are you sure you want to change the base?
Conversation
COMPARE TO
|
Name | Diff |
---|---|
packages/core/package.json | 📈 +182 Bytes |
packages/core/src/routes/applications/application.ts | 📈 +15 Bytes |
packages/core/src/routes/init.ts | 📈 +177 Bytes |
packages/core/src/routes/swagger/utils/documents.ts | 📈 +100 Bytes |
packages/core/src/routes/swagger/utils/general.ts | 📈 +1017 Bytes |
packages/core/src/routes/well-known/well-known.openapi.ts | 📈 +1 Bytes |
packages/core/src/saml-applications/libraries/secrets.ts | 📈 +915 Bytes |
packages/core/src/saml-applications/libraries/utils.ts | 📈 +1.82 KB |
packages/core/src/saml-applications/queries/configs.ts | 📈 +1.15 KB |
packages/core/src/saml-applications/queries/secrets.ts | 📈 +1.31 KB |
packages/core/src/saml-applications/routes/index.openapi.json | 📈 +3.2 KB |
packages/core/src/saml-applications/routes/index.ts | 📈 +2.96 KB |
packages/core/src/saml-applications/routes/utils.ts | 📈 +595 Bytes |
packages/core/src/tenants/Libraries.ts | 📈 +177 Bytes |
packages/core/src/tenants/Queries.ts | 📈 +342 Bytes |
packages/integration-tests/src/api/saml-application.ts | 📈 +471 Bytes |
packages/integration-tests/src/tests/api/application/application.test.ts | 📈 +6 Bytes |
packages/integration-tests/src/tests/api/application/saml-application.test.ts | 📈 +2.74 KB |
packages/phrases/src/locales/en/errors/application.ts | 📈 +207 Bytes |
packages/schemas/src/types/index.ts | 📈 +39 Bytes |
packages/schemas/src/types/saml-application.ts | 📈 +1.52 KB |
packages/schemas/tables/saml_application_configs.sql | 📈 +69 Bytes |
pnpm-lock.yaml | 📈 +942 Bytes |
71f4a15
to
e500da4
Compare
87665e1
to
2c8ef08
Compare
POST /saml-applications
and DEL /saml-applications/:id
APIs
97dfb47
to
c28b5dc
Compare
2c8ef08
to
9316ea2
Compare
5554cf6
to
4e3a6a6
Compare
f767449
to
e618f18
Compare
4e3a6a6
to
57a1561
Compare
57a1561
to
6faece8
Compare
68bd363
to
901892b
Compare
901892b
to
eef74b9
Compare
eef74b9
to
0795ba9
Compare
secrets: SamlApplicationSecrets.guard | ||
.omit({ | ||
tenantId: true, | ||
applicationId: true, | ||
}) | ||
.array(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about defining a specific API for the secret? I think this is how our application endpoints were designed.
@@ -207,7 +213,7 @@ export const buildUserApiBaseDocument = ( | |||
}); | |||
|
|||
export const getSupplementDocuments = async ( | |||
directory = 'routes', | |||
directory = 'build', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might need some more context for this
|
||
import { generateKeyPairAndCertificate } from './utils.js'; | ||
|
||
export const createSamlApplicationSecretsLibrary = (queries: Queries) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just keep one single SAML application library?
samlApplicationSecrets: { insertSamlApplicationSecret }, | ||
} = queries; | ||
|
||
const createNewSamlApplicationSecretForApplication = async ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about just simply createSamlApplicationSecret or keyPairs.
Summary
Add following APIs:
This PR resolves LOG-10114 and LOG-10374, can find design here.
Testing
Add integration tests.
Checklist
.changeset