Change trust authentification endpoints
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export function PublicTrustCenterLayout({ organizationName, organizationLogo, ch
|
|||||||
|
|
||||||
const handleLogout = async () => {
|
const handleLogout = async () => {
|
||||||
try {
|
try {
|
||||||
await fetch(buildEndpoint('/api/trust/v1/trust-center-access/logout'), {
|
await fetch(buildEndpoint('/api/trust/v1/auth/logout'), {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default function TrustCenterAccessPage() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch(buildEndpoint('/api/trust/v1/trust-center-access/authenticate'), {
|
fetch(buildEndpoint('/api/trust/v1/auth/authenticate'), {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
@@ -107,8 +107,8 @@ func NewMux(
|
|||||||
|
|
||||||
r.Handle("/playground", playground.Handler("GraphQL Playground", "/api/trust/v1/graphql"))
|
r.Handle("/playground", playground.Handler("GraphQL Playground", "/api/trust/v1/graphql"))
|
||||||
|
|
||||||
r.Post("/trust-center-access/authenticate", authTokenHandler(trustSvc, authCfg))
|
r.Post("/auth/authenticate", authTokenHandler(trustSvc, authCfg))
|
||||||
r.Delete("/trust-center-access/logout", trustCenterLogoutHandler(authCfg))
|
r.Delete("/auth/logout", trustCenterLogoutHandler(authCfg))
|
||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user