add profile scope
Some checks failed
App Image CI / Build app image (push) Successful in -1m9s
Docker Image CI / Build build images (arch) (push) Successful in -6s
Docker Image CI / Build build images (artix) (push) Successful in -32s
NPM Audit Check / Check NPM audit (push) Failing after -2m9s

This commit is contained in:
2025-09-28 21:47:29 -05:00
parent 2c71563efc
commit abceb07c1a
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "archery",
"version": "0.2.1",
"version": "0.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "archery",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",
"dependencies": {
"body-parser": "^2.2.0",

View File

@@ -1,6 +1,6 @@
{
"name": "archery",
"version": "0.2.1",
"version": "0.2.2",
"description": "Build Arch packages through a web interface",
"keywords": [
"docker",

View File

@@ -324,7 +324,8 @@ class Web {
userInfoURL: openidconf.userinfo_endpoint,
clientID: options.oidc.clientId,
clientSecret: options.oidc.clientSecret,
callbackURL: `${baseUrl}cb`
callbackURL: `${baseUrl}cb`,
scope: 'profile'
}, async (_: string, profile: passport.Profile, cb: OpenIDConnectStrategy.VerifyCallback) => {
const userObj: User = {
id: profile.id,