0
Fork 0
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:
Gao Sun 2022-06-26 18:46:32 +08:00 committed by GitHub
parent 097aade2e2
commit c5cbc93aed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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";

View file

@ -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";

View file

@ -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',

View file

@ -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',