Merge branch 'hotfix/1.27.2' into develop
This commit is contained in:
@@ -38,23 +38,23 @@ export const authConfig: NextAuthConfig = {
|
|||||||
clientId: process.env.GOOGLE_ID,
|
clientId: process.env.GOOGLE_ID,
|
||||||
clientSecret: process.env.GOOGLE_SECRET,
|
clientSecret: process.env.GOOGLE_SECRET,
|
||||||
}),
|
}),
|
||||||
// config based on https://github.com/nextauthjs/next-auth/issues/8831
|
// // config based on https://github.com/nextauthjs/next-auth/issues/8831
|
||||||
LinkedinProvider({
|
// LinkedinProvider({
|
||||||
clientId: process.env.LINKEDIN_ID,
|
// clientId: process.env.LINKEDIN_ID,
|
||||||
clientSecret: process.env.LINKEDIN_SECRET,
|
// clientSecret: process.env.LINKEDIN_SECRET,
|
||||||
authorization: { params: { scope: 'email openid' } },
|
// authorization: { params: { scope: 'email openid' } },
|
||||||
issuer: 'https://www.linkedin.com',
|
// issuer: 'https://www.linkedin.com',
|
||||||
jwks_endpoint: "https://www.linkedin.com/oauth/openid/jwks",
|
// jwks_endpoint: "https://www.linkedin.com/oauth/openid/jwks",
|
||||||
async profile(profile) {
|
// async profile(profile) {
|
||||||
return {
|
// return {
|
||||||
id: profile.sub,
|
// id: profile.sub,
|
||||||
name: profile.name,
|
// name: profile.name,
|
||||||
firstname: profile.given_name,
|
// firstname: profile.given_name,
|
||||||
lastname: profile.family_name,
|
// lastname: profile.family_name,
|
||||||
email: profile.email
|
// email: profile.email
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
})
|
// })
|
||||||
],
|
],
|
||||||
secret: process.env.AUTH_SECRET,
|
secret: process.env.AUTH_SECRET,
|
||||||
trustHost: true, // needs to be set to false for the NextJS to work behing Traefik
|
trustHost: true, // needs to be set to false for the NextJS to work behing Traefik
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
web-app:
|
web-app:
|
||||||
image: utility-bills-tracker:1.27.1
|
image: utility-bills-tracker:1.27.2
|
||||||
networks:
|
networks:
|
||||||
- traefik-network
|
- traefik-network
|
||||||
- mongo-network
|
- mongo-network
|
||||||
|
|||||||
Reference in New Issue
Block a user