Openid connect client-key regex

kelhamtech

Member
Apr 4, 2022
3
0
6
Hello,

I am trying to connect PMG to Microsoft Entra via openid connect in the same manner as I connect my PVE cluster however, certain characters are not accepted in PMG.

The client key/secret generated by Azure contains ~ and this isn't compatible with PMG generating the error file /etc/pmg/realms.conf line 5 (section 'AzureAD') - unable to parse value of 'client-key': value does not match the regex pattern. I don't believe I can change the secrets Microsoft generates and I would have hoped the oidc code was the same between PVE and PMG so I could duplicate a known working config from PVE.

Are there any workarounds or hotfixes I can apply to resolve this?

Regards,
Matt.
 
Hello Matt,

I have the same problem with Authentik. When I want to auto create the user, I get this message:
OpenID Connect login failed, please try again
authentication failure autocreate openid connect user failed: verify entry failed username: value does not match the regex pattern (401).


Have you already found a solution?

Greetings