get redirect to OAuth login showing authorization screen

shared-server
bat 3 years ago
parent fd5cbe0114
commit 49a43f0698

@ -26,7 +26,7 @@ export class Auth {
search.set('client_id', this.giteaClientId)
search.set(
'redirect_uri',
this.remoteBaseUrl + '/auth/callback'
this.remoteBaseUrl + '/api/auth/callback'
)
search.set('state', state)
url.search = search.toString()
@ -50,9 +50,9 @@ export class Auth {
name: 'oauth.gitea.state',
value: state,
})
return new Response('', {
event.respondWith(new Response('', {
headers,
status: 302,
})
}))
}
}
Loading…
Cancel
Save