ChiefOnboarding icon indicating copy to clipboard operation
ChiefOnboarding copied to clipboard

OIDC State parameter not present in Oauth2 authorisation request

Open AlexGiroud opened this issue 1 year ago • 1 comments

I was trying to use Chiefonboarding with our OIDC provider and was stuck getting an error : The authentication request has an invalid 'state' parameter.

After some digging, I've found that this parameter is not required in OIDC spec but recommended (to mitigate CSRF attacks) and some OIDC providers require it (like Okta for example https://developer.okta.com/docs/reference/api/oidc/#request-parameters)

It would be nice to have it for the added security and to broaden OIDC provider options

AlexGiroud avatar Oct 23 '23 10:10 AlexGiroud

Good point. Probably a good idea to just migrate to allauth to get this and potential other issues resolved. It's currently a custom setup and I would likely be more at ease with a battle tested package to avoid having more things come up. I will add it to my list of things to do.

GDay avatar Oct 23 '23 11:10 GDay