fix: switch frontend login to authentik auth-code flow
This commit is contained in:
@@ -2,3 +2,9 @@ import { userHttp } from './http'
|
||||
|
||||
export const loginWithPassword = (username, password) =>
|
||||
userHttp.post('/auth/login', { username, password })
|
||||
|
||||
export const getOidcAuthorizeUrl = (redirectUri) =>
|
||||
userHttp.get('/auth/oidc/url', { params: { redirect_uri: redirectUri } })
|
||||
|
||||
export const exchangeOidcCode = (code, redirectUri) =>
|
||||
userHttp.post('/auth/oidc/exchange', { code, redirect_uri: redirectUri })
|
||||
|
||||
Reference in New Issue
Block a user