joshp23 / YOURLS-OIDC

OpenID Connect Authentication for YOURLS
GNU General Public License v3.0
7 stars 6 forks source link

Introduce parameter for adding additional scopes #13

Open Shocktrooper opened 1 year ago

Shocktrooper commented 1 year ago

As I was trying to configure this plugin I noticed that only the openid scope is sent which is required in OIDC flows. For OIDC providers like okta preffered_username only comes with the profile scope. This has prevented us from using our orgs IDP with this plugin

$oidc->addScope('my_scope'); looks like it needs to be added to the plugin Reference

Shocktrooper commented 1 year ago

Probably should make this configurable incase preferred_username is in something other than the profile scope for other IDP's