mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 05:45:34 +03:00
45970ae82e
* Implemented userinfo #8534 * Make lint happy * Add userinfo endpoint to openid-configuration * Give an error when uid equals 0 * Implemented BearerTokenErrorCode handling * instead of ctx.error use ctx.json so that clients parse error and error_description correctly * Removed unneeded if statement * Use switch instead of subsequent if statements Have a default for unknown errorcodes. Co-authored-by: Nils Hillmann <hillmann@nlh-software.de> Co-authored-by: nlhsoftware <nlhsoftware@noreply.localhost>
10 lines
363 B
Handlebars
10 lines
363 B
Handlebars
{
|
|
"issuer": "{{AppUrl | JSEscape | Safe}}",
|
|
"authorization_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/authorize",
|
|
"token_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/access_token",
|
|
"userinfo_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/userinfo",
|
|
"response_types_supported": [
|
|
"code",
|
|
"id_token"
|
|
]
|
|
}
|