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

API for Token based SOGo Login #6067

Open
xLixon opened this issue Sep 9, 2024 · 8 comments
Open

API for Token based SOGo Login #6067

xLixon opened this issue Sep 9, 2024 · 8 comments

Comments

@xLixon
Copy link

xLixon commented Sep 9, 2024

Summary

Hey Guys,
Im in the developing stage of an own Panel for my Users. I am relying on some functions of the Mailcow API to fetch Data like aviable quota, alias adresses, ... ... ...
But one function im missing, is the ability to a passwordless Login in SOGo.
And i know the function is in mailcow because as an user as well as an admin you can login in mailboxes directly from mailcow.
So why dont make it aviable for own purposes?

It could be that the Application sends an API Call to the endpoint with the same, or an extra api key in the auth header and in the post body the application can specify wich mailbox should be opened. As a response, we get a token. This token can we put then in the GET of the user and redirect him.
(f.e.: https://mail.example.de/sogo-auth-api.php?login=THE-GENERATED-TOKEN)
The token is linked to the email adress supplied in the post request and can only be used for this login.

I tried to implement it on my own in the sogo-auth.php file (/data/web/sogo-auth.php), but i didnt get it to work because i didnt quiet understood the logic behind this SSO login but i will keep searching to maybe make an working version for this.

Motivation

To Login from an Own panel without the need of entering a password

Additional context

No response

@DerLinkman DerLinkman added support please consider asking at https://community.mailcow.email/ or https://t.me/mailcow and removed enhancement labels Sep 9, 2024
@milkmaker

This comment was marked as outdated.

@milkmaker milkmaker closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
@xLixon
Copy link
Author

xLixon commented Sep 9, 2024

Hey @DerLinkman, wieso ist das denn kein feature?

@DerLinkman
Copy link
Member

English please...

Sorry misread your text... to busy lately...

@DerLinkman DerLinkman reopened this Sep 9, 2024
@DerLinkman DerLinkman added enhancement and removed support please consider asking at https://community.mailcow.email/ or https://t.me/mailcow labels Sep 9, 2024
@xLixon
Copy link
Author

xLixon commented Sep 9, 2024

Ahh okey sorry, no problem
So it is a feature right?

@DerLinkman
Copy link
Member

A feature request, yes

@xLixon
Copy link
Author

xLixon commented Sep 9, 2024

perfect, thanks for reopening

@xLixon
Copy link
Author

xLixon commented Sep 10, 2024

Checkout #6070

@lulzkiller666
Copy link

We created a complete WHMCS module for mailcow. The only thing we need now is SSO login on the clientside so the client can login directly to their mailbox. Preferbly without using the API key. But doing it the proper way....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants