feat: adjust github auth provider for enterprise usage
This commit is contained in:
parent
cd67d9d335
commit
f8e3b2e299
@ -51,6 +51,16 @@ export const authOptions: NextAuthOptions = {
|
|||||||
GitHubProvider({
|
GitHubProvider({
|
||||||
clientId: env.GITHUB_CLIENT_ID,
|
clientId: env.GITHUB_CLIENT_ID,
|
||||||
clientSecret: env.GITHUB_CLIENT_SECRET,
|
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.
|
* ...add more providers here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user