Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed May 23, 2024
1 parent 8b847b4 commit cfb49d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class OIDCClient {
private constructor(
private readonly clientId: string,
private readonly clientSecret: string,
private readonly args: OIDCArgs,
private readonly args: OIDCArgs | undefined,
private readonly config: OIDCConfiguration,
private readonly url: URLHelper
) {}
Expand Down
6 changes: 2 additions & 4 deletions packages/backend/server/src/plugins/oauth/types.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
export interface OAuthProviderConfig {
clientId: string;
clientSecret: string;
args: Record<string, string>;
args?: Record<string, string>;
}

export type OIDCArgs = {
scope?: string;
claim_id?: string;
claim_email?: string;
claim_name?: string;
promot?: string;
access_type?: string;
};

export interface OAuthOIDCProviderConfig extends OAuthProviderConfig {
issuer: string;
args: OIDCArgs;
args?: OIDCArgs;
}

export enum OAuthProviderName {
Expand Down

0 comments on commit cfb49d9

Please sign in to comment.