Comments (6)
Hey @bonddim,
After you found those two sloppy errors I went' back and checked the fundamentals. Turner our I wasn't requesting the right scopes:
extra_scopes:
- email, openid, profile
With this everything started to work.
Thanks
from wg-portal.
@vromero did you tried with other username?
I think, that there is conflict with default admin user and your admin user from OIDC
from wg-portal.
Thanks @bonddim, that is a great catch.
I tried, however, with some other user and had no luck. Got the exact same result.
from wg-portal.
Some additional information that I failed to mention. OIDC works just fine if I don't provide a field_map
. I just need to do it to assign admin privileges to some users.
from wg-portal.
one more...
Try to use is_admin
instead of isAdmin
property in your field_map
:
...
field_map:
is_admin: isAdmin
from wg-portal.
Wow that's another excellent catch!
Unfortunately, it didn't help.
Something that I notice is that the user_identifier: preferred_username
seems to be some kind of inhibitor. If I leave it uncommented nothing works, if I comment it seems to work (but anything else in the section doesn't seem to have effect).
For instance the following does not work:
field_map:
user_identifier: preferred_username
#email: email
#firstname: given_name
#lastname: given_name
#phone:
#department: given_name
#is_admin: isAdmin
And as you can see, the non-admin user I'm testing with now has preferred_username perfectly well defined:
{
"iss": "https://xxx/application/o/wgportal/",
"sub": "56e5aa07a336ab4589d8faa96a0662a2be9261142d42ac2fcfa758e5c809242b",
"aud": "acvgD9pRIlSmfCCFMH56iOw9NQqwg867hRzTePh6",
"exp": 1720906073,
"iat": 1720904273,
"auth_time": 1720904273,
"acr": "goauthentik.io/providers/oauth2/default",
"amr": [
"pwd"
],
"email": "",
"email_verified": true,
"isAdmin": false,
"name": "Perry",
"given_name": "Perry",
"preferred_username": "perry",
"nickname": "perry",
"groups": [
"Users"
]
}
from wg-portal.
Related Issues (20)
- [v2] Keypairs/PublicKey can not be changed HOT 3
- Deploy and run HOT 1
- Squashed PostUp / PostDown HOT 2
- wg-portal deletes routes HOT 4
- User management
- LDAP disable Peers deleted from ldap HOT 1
- Issue with Postgres database HOT 1
- Redirect traffic to domain HOT 1
- Option to bind webserver to specific interface HOT 1
- Customizing homepage HOT 1
- Docker container refuses to find/load config.yml when not mapped directly to the file
- Peers are added to wg0.conf with a mask of /24
- LDAP Login Issue HOT 6
- Doc: Showing prominently config format for current stable version HOT 2
- Error when using mysql as database
- LDAP sync runs every 10 seconds, ldap_sync_interval is ignored
- Sending Wireguard-Config via Postfix Mailserver Fails
- no work with ghcr.io/wg-easy/wg-easy:latest after update HOT 1
- [ Feature Request ] - v2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wg-portal.