mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
refactor: align Post Sign-out Redirect URI
(#1248)
This commit is contained in:
parent
097aade2e2
commit
c5cbc93aed
6 changed files with 6 additions and 6 deletions
|
@ -157,7 +157,7 @@ const App = () => {
|
||||||
|
|
||||||
Execute signOut() methods will redirect users to the Logto sign out page. After a success sign out, all use session data and auth status will be cleared.
|
Execute signOut() methods will redirect users to the Logto sign out page. After a success sign out, all use session data and auth status will be cleared.
|
||||||
|
|
||||||
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post sign out redirect URI" />
|
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post Sign-out Redirect URI" />
|
||||||
|
|
||||||
Add the following code to your web app
|
Add the following code to your web app
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ const App = () => {
|
||||||
|
|
||||||
Execute signOut() methods will redirect users to the Logto sign out page. After a success sign out, all use session data and auth status will be cleared.
|
Execute signOut() methods will redirect users to the Logto sign out page. After a success sign out, all use session data and auth status will be cleared.
|
||||||
|
|
||||||
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post sign out redirect URI" />
|
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post Sign-out Redirect URI" />
|
||||||
|
|
||||||
Add the following code to your web app
|
Add the following code to your web app
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ Calling `.signOut()` will clear all the Logto data in memory and LocalStorage, i
|
||||||
To make the user come back to your application after signing out,
|
To make the user come back to your application after signing out,
|
||||||
it's necessary to add `http://localhost:1234` as one of the Post Sign Out URIs and use the URL as the parameter when calling `.signOut()`.
|
it's necessary to add `http://localhost:1234` as one of the Post Sign Out URIs and use the URL as the parameter when calling `.signOut()`.
|
||||||
|
|
||||||
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post sign out redirect URI" />
|
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post Sign-out Redirect URI" />
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { useLogto } from "@logto/vue";
|
import { useLogto } from "@logto/vue";
|
||||||
|
|
|
@ -157,7 +157,7 @@ const { isAuthenticated } = useLogto();
|
||||||
|
|
||||||
为了确保用户登出后能够跳转回你的应用,我们需要首先在管理界面中将 `http://localhost:1234` 添加到允许登出后跳转的地址列表(Post Sign Out URIs)中。
|
为了确保用户登出后能够跳转回你的应用,我们需要首先在管理界面中将 `http://localhost:1234` 添加到允许登出后跳转的地址列表(Post Sign Out URIs)中。
|
||||||
|
|
||||||
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post sign out redirect URI" />
|
<MultiTextInputField appId={props.appId} name="postLogoutRedirectUris" title="Post Sign-out Redirect URI" />
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { useLogto } from "@logto/vue";
|
import { useLogto } from "@logto/vue";
|
||||||
|
|
|
@ -194,7 +194,7 @@ const translation = {
|
||||||
description: 'Description',
|
description: 'Description',
|
||||||
authorization_endpoint: 'Authorization endpoint',
|
authorization_endpoint: 'Authorization endpoint',
|
||||||
redirect_uri: 'Redirect URI',
|
redirect_uri: 'Redirect URI',
|
||||||
post_sign_out_redirect_uri: 'Post sign out redirect URI',
|
post_sign_out_redirect_uri: 'Post Sign-out Redirect URI',
|
||||||
cors_allowed_origins: 'CORS allowed origins',
|
cors_allowed_origins: 'CORS allowed origins',
|
||||||
add_another: 'Add Another',
|
add_another: 'Add Another',
|
||||||
id_token_expiration: 'ID token expiration',
|
id_token_expiration: 'ID token expiration',
|
||||||
|
|
|
@ -190,7 +190,7 @@ const translation = {
|
||||||
description: '描述',
|
description: '描述',
|
||||||
authorization_endpoint: 'Authorization Endpoint',
|
authorization_endpoint: 'Authorization Endpoint',
|
||||||
redirect_uri: 'Redirect URI',
|
redirect_uri: 'Redirect URI',
|
||||||
post_sign_out_redirect_uri: 'Post Sign Out Redirect URI',
|
post_sign_out_redirect_uri: 'Post Sign-out Redirect URI',
|
||||||
cors_allowed_origins: 'CORS Allowed Origins',
|
cors_allowed_origins: 'CORS Allowed Origins',
|
||||||
add_another: '继续添加',
|
add_another: '继续添加',
|
||||||
id_token_expiration: 'ID Token Expiration',
|
id_token_expiration: 'ID Token Expiration',
|
||||||
|
|
Loading…
Add table
Reference in a new issue