-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add SAML app audit logs (#6931)
- Loading branch information
Showing
4 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
import type * as hook from './hook.js'; | ||
import type * as interaction from './interaction.js'; | ||
import type * as jwtCustomizer from './jwt-customizer.js'; | ||
import type * as saml from './saml.js'; | ||
import type * as token from './token.js'; | ||
|
||
export * as interaction from './interaction.js'; | ||
export * as token from './token.js'; | ||
export * as hook from './hook.js'; | ||
export * as jwtCustomizer from './jwt-customizer.js'; | ||
export * as saml from './saml.js'; | ||
|
||
/** Fallback for empty or unrecognized log keys. */ | ||
export const LogKeyUnknown = 'Unknown'; | ||
|
||
export type AuditLogKey = typeof LogKeyUnknown | interaction.LogKey | token.LogKey; | ||
export type AuditLogKey = typeof LogKeyUnknown | interaction.LogKey | token.LogKey | saml.LogKey; | ||
export type WebhookLogKey = hook.LogKey; | ||
export type JwtCustomizerLogKey = jwtCustomizer.LogKey; | ||
export type SamlLogKey = saml.LogKey; | ||
|
||
/** | ||
* The union type of all available log keys. | ||
* Note duplicate keys are allowed but should be avoided. | ||
* | ||
* @see {@link interaction.LogKey} for interaction log keys. | ||
* @see {@link token.LogKey} for token log keys. | ||
* @see {@link saml.LogKey} for SAML application log keys. | ||
**/ | ||
export type LogKey = AuditLogKey | WebhookLogKey | JwtCustomizerLogKey; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type Prefix = 'SamlApplication'; | ||
|
||
export const prefix: Prefix = 'SamlApplication'; | ||
|
||
export enum Scenario { | ||
Callback = 'Callback', | ||
AuthnRequest = 'AuthnRequest', | ||
} | ||
|
||
export type LogKey = `${Prefix}.${Scenario}`; |