mirror of
https://github.com/hay-kot/homebox.git
synced 2025-10-04 13:21:01 +00:00
feat(auth): support for forwarded auth provider
This commit is contained in:
parent
0041c277ad
commit
bbf9878963
12 changed files with 266 additions and 61 deletions
|
@ -13,9 +13,9 @@ export class PublicApi extends BaseAPI {
|
|||
return this.http.get<APISummary>({ url: route("/status") });
|
||||
}
|
||||
|
||||
public login(username: string, password: string, stayLoggedIn = false) {
|
||||
public login(username: string, password: string, stayLoggedIn = false, provider = "local") {
|
||||
return this.http.post<LoginForm, TokenResponse>({
|
||||
url: route("/users/login"),
|
||||
url: route("/users/login?provider=" + provider),
|
||||
body: {
|
||||
username,
|
||||
password,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue