René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a1dacb5d-14fb-cc51-6dd2-7d4c7f69548a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE7D6:3DC818:79045B:9ED320:698016C9
html-safe-nonce922f246f7b5bc81b8cfc275427e519d569a37d80fd12e084f34b1d37f49edb3b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0Q2OjNEQzgxODo3OTA0NUI6OUVEMzIwOjY5ODAxNkM5IiwidmlzaXRvcl9pZCI6IjczMDM5MjY1ODI1MzQ0Nzc1MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5ac5cb36632b830f29461ba07269b0903f81fc3c4dabba62115050935da7169b
hovercard-subject-tagpull_request:829762009
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JavaWebStack/web-utils/pull/1/files
twitter:imagehttps://avatars.githubusercontent.com/u/28512986?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/28512986?s=400&v=4
og:image:altUsage 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JavaWebStack/web-utils git https://github.com/JavaWebStack/web-utils.git
octolytics-dimension-user_id73674659
octolytics-dimension-user_loginJavaWebStack
octolytics-dimension-repository_id363203695
octolytics-dimension-repository_nwoJavaWebStack/web-utils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id363203695
octolytics-dimension-repository_network_root_nwoJavaWebStack/web-utils
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaWebStack/web-utils/pull/1/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaWebStack%2Fweb-utils%2Fpull%2F1%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaWebStack%2Fweb-utils%2Fpull%2F1%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaWebStack%2Fweb-utils
Reloadhttps://github.com/JavaWebStack/web-utils/pull/1/files
Reloadhttps://github.com/JavaWebStack/web-utils/pull/1/files
Reloadhttps://github.com/JavaWebStack/web-utils/pull/1/files
JavaWebStack https://github.com/JavaWebStack
web-utilshttps://github.com/JavaWebStack/web-utils
Notifications https://github.com/login?return_to=%2FJavaWebStack%2Fweb-utils
Fork 0 https://github.com/login?return_to=%2FJavaWebStack%2Fweb-utils
Star 1 https://github.com/login?return_to=%2FJavaWebStack%2Fweb-utils
Code https://github.com/JavaWebStack/web-utils
Issues 3 https://github.com/JavaWebStack/web-utils/issues
Pull requests 0 https://github.com/JavaWebStack/web-utils/pulls
Actions https://github.com/JavaWebStack/web-utils/actions
Projects 0 https://github.com/JavaWebStack/web-utils/projects
Security 0 https://github.com/JavaWebStack/web-utils/security
Insights https://github.com/JavaWebStack/web-utils/pulse
Code https://github.com/JavaWebStack/web-utils
Issues https://github.com/JavaWebStack/web-utils/issues
Pull requests https://github.com/JavaWebStack/web-utils/pulls
Actions https://github.com/JavaWebStack/web-utils/actions
Projects https://github.com/JavaWebStack/web-utils/projects
Security https://github.com/JavaWebStack/web-utils/security
Insights https://github.com/JavaWebStack/web-utils/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FJavaWebStack%2Fweb-utils%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJavaWebStack%2Fweb-utils%2Fissues%2Fnew%2Fchoose
x7airworkerhttps://github.com/x7airworker
devhttps://github.com/JavaWebStack/web-utils/tree/dev
feature/authhttps://github.com/JavaWebStack/web-utils/tree/feature/auth
Conversation 0 https://github.com/JavaWebStack/web-utils/pull/1
Commits 3 https://github.com/JavaWebStack/web-utils/pull/1/commits
Checks 0 https://github.com/JavaWebStack/web-utils/pull/1/checks
Files changed https://github.com/JavaWebStack/web-utils/pull/1/files
Please reload this pagehttps://github.com/JavaWebStack/web-utils/pull/1/files
Auth System https://github.com/JavaWebStack/web-utils/pull/1/files#top
Show all changes 3 commits https://github.com/JavaWebStack/web-utils/pull/1/files
eccae6e Added an auth system x7airworker Jan 23, 2022 https://github.com/JavaWebStack/web-utils/pull/1/commits/eccae6ead8f032926789ce4bac68a4782ee91b34
7240ad9 Changed name of authHandler to authMiddleware x7airworker Jan 23, 2022 https://github.com/JavaWebStack/web-utils/pull/1/commits/7240ad92e2602adacfada815e6f9783b35b00c12
b38de83 Change Annotation to be unchecked x7airworker Jan 23, 2022 https://github.com/JavaWebStack/web-utils/pull/1/commits/b38de837518c66f4ff88c41a23b02045320d9223
Clear filters https://github.com/JavaWebStack/web-utils/pull/1/files
Please reload this pagehttps://github.com/JavaWebStack/web-utils/pull/1/files
Please reload this pagehttps://github.com/JavaWebStack/web-utils/pull/1/files
pom.xml https://github.com/JavaWebStack/web-utils/pull/1/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
AbstractAuthSystem.java https://github.com/JavaWebStack/web-utils/pull/1/files#diff-3b09a31b4a43c67cdb9d973be90eb1077e631d084a04bd4f7cf2e021b6f65680
AuthException.java https://github.com/JavaWebStack/web-utils/pull/1/files#diff-bbd6bcaaff31720f9fd18f5ae0ec9ac0a5d71ce1ffb5715bd125bfca7bd6d6e2
IUser.java https://github.com/JavaWebStack/web-utils/pull/1/files#diff-f7ce2474fe57e3197d2ab5846f2dc3d257ffe73689404f479c52698176542c96
SimpleAuthSystem.java https://github.com/JavaWebStack/web-utils/pull/1/files#diff-2298abe3d0ed3084ab85cdac8b7662f569c614ae4d0a5e2b1f6c8508ed7dc974
SimpleUser.java https://github.com/JavaWebStack/web-utils/pull/1/files#diff-c02149e9db52698b003f0fd92d60629b0ceedbc45b5eabd84aa5f9fbaf495dc3
pom.xmlhttps://github.com/JavaWebStack/web-utils/pull/1/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
View file https://github.com/JavaWebStack/web-utils/blob/b38de837518c66f4ff88c41a23b02045320d9223/pom.xml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaWebStack/web-utils/pull/1/{{ revealButtonHref }}
https://github.com/JavaWebStack/web-utils/pull/1/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/JavaWebStack/web-utils/pull/1/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
src/main/java/org/javawebstack/webutils/security/AbstractAuthSystem.javahttps://github.com/JavaWebStack/web-utils/pull/1/files#diff-3b09a31b4a43c67cdb9d973be90eb1077e631d084a04bd4f7cf2e021b6f65680
View file https://github.com/JavaWebStack/web-utils/blob/b38de837518c66f4ff88c41a23b02045320d9223/src/main/java/org/javawebstack/webutils/security/AbstractAuthSystem.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaWebStack/web-utils/pull/1/{{ revealButtonHref }}
src/main/java/org/javawebstack/webutils/security/AuthException.javahttps://github.com/JavaWebStack/web-utils/pull/1/files#diff-bbd6bcaaff31720f9fd18f5ae0ec9ac0a5d71ce1ffb5715bd125bfca7bd6d6e2
View file https://github.com/JavaWebStack/web-utils/blob/b38de837518c66f4ff88c41a23b02045320d9223/src/main/java/org/javawebstack/webutils/security/AuthException.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaWebStack/web-utils/pull/1/{{ revealButtonHref }}
src/main/java/org/javawebstack/webutils/security/IUser.javahttps://github.com/JavaWebStack/web-utils/pull/1/files#diff-f7ce2474fe57e3197d2ab5846f2dc3d257ffe73689404f479c52698176542c96
View file https://github.com/JavaWebStack/web-utils/blob/b38de837518c66f4ff88c41a23b02045320d9223/src/main/java/org/javawebstack/webutils/security/IUser.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaWebStack/web-utils/pull/1/{{ revealButtonHref }}
src/main/java/org/javawebstack/webutils/security/SimpleAuthSystem.javahttps://github.com/JavaWebStack/web-utils/pull/1/files#diff-2298abe3d0ed3084ab85cdac8b7662f569c614ae4d0a5e2b1f6c8508ed7dc974
View file https://github.com/JavaWebStack/web-utils/blob/b38de837518c66f4ff88c41a23b02045320d9223/src/main/java/org/javawebstack/webutils/security/SimpleAuthSystem.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaWebStack/web-utils/pull/1/{{ revealButtonHref }}
src/main/java/org/javawebstack/webutils/security/SimpleUser.javahttps://github.com/JavaWebStack/web-utils/pull/1/files#diff-c02149e9db52698b003f0fd92d60629b0ceedbc45b5eabd84aa5f9fbaf495dc3
View file https://github.com/JavaWebStack/web-utils/blob/b38de837518c66f4ff88c41a23b02045320d9223/src/main/java/org/javawebstack/webutils/security/SimpleUser.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaWebStack/web-utils/pull/1/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.