feat: adjust github auth provider for enterprise usage

This commit is contained in:
TOHAACK 2024-04-19 10:36:18 +02:00
parent cd67d9d335
commit f8e3b2e299
No known key found for this signature in database

View File

@ -51,6 +51,16 @@ export const authOptions: NextAuthOptions = {
GitHubProvider({
clientId: env.GITHUB_CLIENT_ID,
clientSecret: env.GITHUB_CLIENT_SECRET,
authorization: {
url: "https://git.i.mercedes-benz.com/login/oauth/authorize",
params: {
scope: "read:user user:email"
}
},
token: "https://git.i.mercedes-benz.com/login/oauth/access_token",
userinfo: {
url: "https://git.i.mercedes-benz.com/api/v3/user",
}
}),
/**
* ...add more providers here.