feat(opsserver,web): replace the Angular UI and REST management layer with a TypedRequest-based ops server and bundled web frontend
This commit is contained in:
61
ts_interfaces/requests/oauth.ts
Normal file
61
ts_interfaces/requests/oauth.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import * as plugins from '../plugins.ts';
|
||||
import * as data from '../data/index.ts';
|
||||
|
||||
// ============================================================================
|
||||
// OAuth / External Auth Requests
|
||||
// ============================================================================
|
||||
|
||||
export interface IReq_OAuthAuthorize extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_OAuthAuthorize
|
||||
> {
|
||||
method: 'oauthAuthorize';
|
||||
request: {
|
||||
providerId: string;
|
||||
returnUrl?: string;
|
||||
};
|
||||
response: {
|
||||
redirectUrl: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_OAuthCallback extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_OAuthCallback
|
||||
> {
|
||||
method: 'oauthCallback';
|
||||
request: {
|
||||
providerId: string;
|
||||
code: string;
|
||||
state: string;
|
||||
};
|
||||
response: {
|
||||
identity?: data.IIdentity;
|
||||
user?: data.IUser;
|
||||
isNewUser?: boolean;
|
||||
errorCode?: string;
|
||||
errorMessage?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_LdapLogin extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_LdapLogin
|
||||
> {
|
||||
method: 'ldapLogin';
|
||||
request: {
|
||||
providerId: string;
|
||||
username: string;
|
||||
password: string;
|
||||
};
|
||||
response: {
|
||||
identity?: data.IIdentity;
|
||||
user?: data.IUser;
|
||||
isNewUser?: boolean;
|
||||
errorCode?: string;
|
||||
errorMessage?: string;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user