Skip to content

[FEATURE] Support for custom authorize parameters #50

@flindeberg

Description

@flindeberg

Is your feature request related to a problem? Please describe.
Support for custom authorize parameters would be helpful. For example, Google allows setting hd (hosted domain, or cloud organization domain) which helps guide the Google login.

https://developers.google.com/identity/openid-connect/openid-connect#hd-param

I would assume there are other IdPs with comparable customization options.

Describe the solution you'd like
To me, something like this would work splendidly:

   openid:
     ...
     custom_auth_params:
        - "hd=myfancydomain.net"
        - "display=popup"
     ...

Additional context
E.g. append &hd=myprivatedomain.net / custom_auth_params.join('&') (pseudocode) to the line below would fix my particular issue:

window.location.href = `/auth/openid/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&base_url=${baseUrl}${stateParam}${clientStateParam}`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions