Some OAuth providers accept additional URL query params as part of the OAuth authorization URL.
Some examples
• Twitter supports screen_name and force_login parameters - https://developer.twitter.com/en/docs/authentication/api-reference/authorize
• Google supports an hd parameter to restrict logins to users with that domain, among some other non-standard params - https://developers.google.com/identity/protocols/oauth2/openid-connect#sendauthrequest
Some of these, like force_login, can be hardcoded in user space when using this middleware.
But it doesn't seem like one can make a POST request to the launch_uri with additional, dynamic params such that they are passed to the provider's authorization URL.
Would the maintainers here be interested in a PR that adds this functionality, or be willing to add it themselves? I can take a stab, but I'm very new to Clojure.
Some OAuth providers accept additional URL query params as part of the OAuth authorization URL.
Some examples
• Twitter supports
screen_nameandforce_loginparameters - https://developer.twitter.com/en/docs/authentication/api-reference/authorize• Google supports an
hdparameter to restrict logins to users with that domain, among some other non-standard params - https://developers.google.com/identity/protocols/oauth2/openid-connect#sendauthrequestSome of these, like
force_login, can be hardcoded in user space when using this middleware.But it doesn't seem like one can make a POST request to the
launch_uriwith additional, dynamic params such that they are passed to the provider's authorization URL.Would the maintainers here be interested in a PR that adds this functionality, or be willing to add it themselves? I can take a stab, but I'm very new to Clojure.