Remove OAuthToken from db (use authlib dict); basic OAuth2 service provider with Forgejo
Some checks failed
/ build (push) Failing after 13s
/ test (push) Successful in 4s

This commit is contained in:
phil 2025-01-18 06:20:44 +01:00
parent 21ccdad953
commit 2fe7536c53
10 changed files with 106 additions and 50 deletions

View file

@ -120,7 +120,7 @@
if (xmlHttp.readyState == 4) {
elem.classList.add("hasResponseStatus")
elem.classList.add("status-" + xmlHttp.status)
elem.title = "Response code: " + xmlHttp.status
elem.title = "Response code: " + xmlHttp.status + " - " + xmlHttp.statusText
}
}
xmlHttp.open("GET", elem.href, true) // true for asynchronous

View file

@ -109,6 +109,8 @@
<a href="protected-by-foorole-and-barrole">Auth + foorole and barrole protected content</a>
<a href="fast_api_depends" class="hidden">Using FastAPI Depends</a>
<a href="other">Other</a>
<a href="oauth2-forgejo-test">OAuth2 test (forgejo user info)</a>
<a href="introspect">Introspect token</a>
</div>
{% if user_info_details %}
<div class="debug-auth">