chore: oidc first

This commit is contained in:
xiaojunnuo
2025-11-26 07:34:42 +08:00
parent b4c362da37
commit 5a148aa3b9
12 changed files with 107 additions and 1586 deletions
@@ -0,0 +1,24 @@
export interface OauthProvider {
buildLoginUrl: (params: { redirectUri: string }) => string;
handleCallback: (params: { code: string; redirectUri: string }) => Promise<{
accessToken: string;
refreshToken: string;
expiresIn: number;
idToken: string;
scope: string;
tokenType: string;
}>;
bind: (params: {
accessToken: string;
refreshToken: string;
expiresIn: number;
idToken: string;
scope: string;
tokenType: string;
bindInfo: any;
}) => Promise<{
success: boolean;
message: string;
}>;
}