Title: Auth System by x7airworker · Pull Request #1 · JavaWebStack/web-utils · GitHub
Open Graph Title: Auth System by x7airworker · Pull Request #1 · JavaWebStack/web-utils
X Title: Auth System by x7airworker · Pull Request #1 · JavaWebStack/web-utils
Description: Usage Simple implementation Use the SimpleUser Instantiate the SimpleAuthSystem using a secret Own implementation Implement the IUser interface on your User model Create an own AuthSystem by extending the AbstractAuthSystem and implementing the method getUserByUsername Common use Register the interceptor using server.beforeInterceptor(authSystem::tokenHandler) Register the middleware using server.middleware("auth", authSystem::authMiddleware) Register the login route handler using server.post("/login", authSystem::loginHandler) Annotate your controllers or handlers using @With("auth") to enforce user to be authenticated Receive the current logged in user using authSystem.currentUser(), note that this method implements lazy-caching for the whole request cycle. Consider catching the AuthException to create your own formatting for error messages
Open Graph Description: Usage Simple implementation Use the SimpleUser Instantiate the SimpleAuthSystem using a secret Own implementation Implement the IUser interface on your User model Create an own AuthSystem by ext...
X Description: Usage Simple implementation Use the SimpleUser Instantiate the SimpleAuthSystem using a secret Own implementation Implement the IUser interface on your User model Create an own AuthSystem by ext...
Opengraph URL: https://github.com/JavaWebStack/web-utils/pull/1
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f1dd7a8f-9fdd-500a-9b82-69438d4213e9 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B00A:1DE5:35A38B:48EF3A:6980793B |
| html-safe-nonce | 4cc2ef7fe7e2eda1228f349b7fd1f5fd7a4564619ed25b59c4891039577b2e36 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDBBOjFERTU6MzVBMzhCOjQ4RUYzQTo2OTgwNzkzQiIsInZpc2l0b3JfaWQiOiI0NjY4MzQ2NzY2MzY0NTM5MTk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 641e82cd13f54b635e0417aba62223ed036b481aaea6422825eed757175339a1 |
| hovercard-subject-tag | pull_request:829762009 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/JavaWebStack/web-utils/pull/1/checks |
| twitter:image | https://avatars.githubusercontent.com/u/28512986?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/28512986?s=400&v=4 |
| og:image:alt | Usage Simple implementation Use the SimpleUser Instantiate the SimpleAuthSystem using a secret Own implementation Implement the IUser interface on your User model Create an own AuthSystem by ext... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4590f1c00c56e5b3a3460b81e4236454a157a2159793b09a2ddee090670e75fb |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaWebStack/web-utils git https://github.com/JavaWebStack/web-utils.git |
| octolytics-dimension-user_id | 73674659 |
| octolytics-dimension-user_login | JavaWebStack |
| octolytics-dimension-repository_id | 363203695 |
| octolytics-dimension-repository_nwo | JavaWebStack/web-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 363203695 |
| octolytics-dimension-repository_network_root_nwo | JavaWebStack/web-utils |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 242fda17fe105562f9eb7fe91a7a0dca07c527b3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width