Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(console): update the java spring guide #6133

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

simeng-li
Copy link
Contributor

Summary

Update the Java Spring guide

Testing

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

update the java spring guide
Copy link

github-actions bot commented Jun 28, 2024

COMPARE TO master

Total Size Diff 📈 +806 Bytes

Diff by File
Name Diff
packages/console/src/assets/docs/fragments/_redirect-uris-web.mdx 📈 +34 Bytes
packages/console/src/assets/docs/guides/web-java-spring-boot/README.mdx 📈 +772 Bytes

@@ -13,6 +13,6 @@ Now, let's configure your redirect URI. E.g. {`${props.defaultUri ?? 'http://loc

<UriInputField name="redirectUris" />

Just like signing in, users should be redirected to Logto for signing out of the shared session. Once finished, it would be great to redirect the user back to your website. For example, add `http://localhost:3000` as the post sign-out redirect URI below.
Just like signing in, users should be redirected to Logto for signing out of the shared session. Once finished, it would be great to redirect the user back to your website. For example, add {`${props.defaultLogoutUri ?? 'http://localhost:3000'}`} as the post sign-out redirect URI below.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Just like signing in, users should be redirected to Logto for signing out of the shared session. Once finished, it would be great to redirect the user back to your website. For example, add {`${props.defaultLogoutUri ?? 'http://localhost:3000'}`} as the post sign-out redirect URI below.
Just like signing in, users should be redirected to Logto for signing out of the shared session. Once finished, it would be great to redirect the user back to your website. For example, add {`${props.defaultSignOutUri ?? 'http://localhost:3000'}`} as the post sign-out redirect URI below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@@ -268,7 +258,7 @@ home.html:

Create a new controller to handle the user page:

```java
```java title="UserController.java"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you move "Get user info" after "Checkpoint"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename the title to Create user page. Besides displaying user information, this section also handles the sign-out logic and the after sign-in redirect logic. Keeping it in the current order ensures a more fluent reading experience. .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants