Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/auth/operations.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,36 @@ namespace CoreSystem.Auth {
@statusCode statusCode: 401;
};

@summary("Link different OAuth accounts to the same user")
@route("/auth/link")
@post
op link(
@doc("The name of the existing user.")
@query
name: string,

@doc("The OAuth2 provider of the existing user.")
@query
oauthProvider: OAuthLoginProviders,

@doc("The email of the existing user.")
@query
email: string
): {
@statusCode statusCode: 200;
} | {
@statusCode statusCode: 401;
};

@summary("Abort the account linking process")
@route("/auth/link/abort")
@post
op abortLink(): {
@statusCode statusCode: 200;
} | {
@statusCode statusCode: 401;
};

@summary("Internal Login (Debug)")
@route("/auth/login/internal")
@post
Expand Down
Loading