fix(oidc): remove trailling / needed but add manually

depends on provider keycloack != authentik
This commit is contained in:
DrummyFloyd 2025-05-12 17:42:41 +02:00
parent 1218ffbb83
commit dcc140dca0
No known key found for this signature in database
GPG Key ID: 20AC86EE49130589
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ export class OauthProvider implements ProvidersInterface {
}
async getToken(code: string): Promise<string> {
const response = await fetch(`${this.tokenUrl}/`, {
const response = await fetch(`${this.tokenUrl}`, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
@ -85,7 +85,7 @@ export class OauthProvider implements ProvidersInterface {
}
async getUser(access_token: string): Promise<{ email: string; id: string }> {
const response = await fetch(`${this.userInfoUrl}/`, {
const response = await fetch(`${this.userInfoUrl}`, {
headers: {
Authorization: `Bearer ${access_token}`,
Accept: 'application/json',