Function generateAuthorizationParams

Generate authorization params to pass to generateAuthorizationUrl.

Used as part of an authorization code OIDC flow: see https://openid.net/specs/openid-connect-basic-1_0.html#CodeFlow.