Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip login page if there is only one authentication client #346

Open
azmeuk opened this issue Nov 18, 2021 · 7 comments
Open

Skip login page if there is only one authentication client #346

azmeuk opened this issue Nov 18, 2021 · 7 comments
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@azmeuk
Copy link
Contributor

azmeuk commented Nov 18, 2021

Hi. I have one unique OIDC authentication client with my humhub installation, and this will not change in the future. Thus, displaying the regular signin form is useless for me and I would like to skip this screen and automatically redirect to my OIDC provider login page. I could not find documentation about this.

Is there a way to achieve this? If not, I suggest implementing this feature.

What do you think?

@samdark samdark added type:enhancement Enhancement status:ready for adoption Feel free to implement this issue. labels Nov 21, 2021
@samdark
Copy link
Member

samdark commented Nov 21, 2021

There's currently no way to achieve it. We won't likely work on it ourselves but will gladly accept a pull request implementing it.

@azmeuk
Copy link
Contributor Author

azmeuk commented Nov 21, 2021

Ok I may try to look at this then. Before I start, do you have clues or expectations on how this should be done?

@samdark
Copy link
Member

samdark commented Nov 21, 2021

  1. It should be optional and turned off by default.
  2. If there is a single client, no choice screen should be displayed and auth should be performed for that client right away.

@azmeuk
Copy link
Contributor Author

azmeuk commented Dec 16, 2021

Is a javascript redirection OK or do you prefer the redirection being made serverside?

@samdark
Copy link
Member

samdark commented Dec 16, 2021

We prefer it serverside.

@azmeuk
Copy link
Contributor Author

azmeuk commented Jan 13, 2022

I could find a workaround with a bit of configuration:

$config = [
    ...
    'components' => [
        ...
         'users' => [
            ...
            'enableAutoLogin': true,
            'loginUrl' => ['/user/auth/external?authclient=MyAuthClient'],
         ]
    ]
];

@samdark
Copy link
Member

samdark commented Jan 14, 2022

If it could be achieved without coding, it should be in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants