Skip to content

Commit

Permalink
fix(providers): set 42 default scope (#3189)
Browse files Browse the repository at this point in the history
With no scope defined, it sets `openid` by default, which is an invalid 42 scope.

Co-authored-by: Alaa Zorkane <alaazorkane@gmail.com>

Co-authored-by: Alaa Zorkane <alaazorkane@gmail.com>
  • Loading branch information
estarossa0 and AlaaZorkane committed Nov 13, 2021
1 parent b871b47 commit 38cefdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/42.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export default function FortyTwo(options) {
id: "42-school",
name: "42 School",
type: "oauth",
authorization: "https://api.intra.42.fr/oauth/authorize",
authorization: {
url: "https://api.intra.42.fr/oauth/authorize",
params: { scope: "public" },
},
token: "https://api.intra.42.fr/oauth/token",
userinfo: "https://api.intra.42.fr/v2/me",
profile(profile) {
Expand Down

0 comments on commit 38cefdd

Please sign in to comment.