Skip to content

Commit 48dede5

Browse files
authored
Fix GitHub OAuth issuer validation (#846)
1 parent 06626e6 commit 48dede5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/ee/authentication/sso/oidc/util/githubEnterpriseProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default function GitHubEnterpriseProvider<P extends GithubProfile>(
1717
id: 'github-enterprise',
1818
name: 'GitHub Enterprise',
1919
type: 'oauth',
20+
issuer: `${baseUrl}/login/oauth`,
2021
authorization: {
2122
url: `${baseUrl}/login/oauth/authorize`,
2223
params: { scope: 'read:user user:email' },

frontend/pages/api/auth/[...nextauth].ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const authOptions: NextAuthOptionsCallback = (_req, res) => {
4848
GitHubProvider({
4949
clientId: process.env.GITHUB_CLIENT_ID,
5050
clientSecret: clientSecret,
51+
issuer: 'https://github.com/login/oauth',
5152
})
5253
)
5354
}

0 commit comments

Comments
 (0)