Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Roundcube Community Forum
»
News and Announcements
»
General Discussion
»
Session Invalid after the OAUTH2 authentication
« previous
next »
Print
Pages: [
1
]
Author
Topic: Session Invalid after the OAUTH2 authentication (Read 4863 times)
hindra1546
Jr. Member
Posts: 12
Session Invalid after the OAUTH2 authentication
«
on:
November 14, 2023, 01:38:31 AM »
I have an error with the session after my OAUTH2 authentication
Here is my OAUTH2 config :
$config['oauth_provider'] = 'outlook';
$config['oauth_provider_name'] = 'Microsoft';
$config['oauth_client_id'] = "id";
$config['oauth_client_secret'] = "secret";
$config['oauth_auth_uri'] = "
https://login.microsoftonline.com/0a4f9a5a-bb7b-4d67-a9ef-a37798c24217/oauth2/v2.0/authorize
";
$config['oauth_token_uri'] = "
https://login.microsoftonline.com/0a4f9a5a-bb7b-4d67-a9ef-a37798c24217/oauth2/v2.0/token
";
$config['oauth_identity_uri'] = "
https://graph.microsoft.com/v1.0/me
";
$config['oauth_identity_fields'] = ['email', 'userPrincipalName'];
$config['oauth_scope'] = "
https://graph.microsoft.com/IMAP.AccessAsUser.All
https://graph.microsoft.com/User.Read
https://graph.microsoft.com/Mail.Read
https://graph.microsoft.com/offline_access
";
$config['oauth_auth_parameters'] = ['access_type' => 'offline', 'prompt' => 'consent'];
$config['oauth2_auto_create'] = true;
I set up the redirection to the mail box url in the rcmail_oauth file which is :
public function get_redirect_uri()
{
return '
http://localhost:8181/roundcube/?_task=mail&_mbox=INBOX';
}
So after the OAUTH is done, it should go to the redirect_uri, but i keep beign redirected to the login page with the Error 'Invalid or session expired'
I've enable the Session log and i got something like this :
[14-Nov-2023 09:33:56 +0300]: <ern0vc9h> Aborted session ern0vc9hbj0in2mu8gbvat3ub3; no valid session data found
Can someone help me on what should i do
Thanks
Logged
hindra1546
Jr. Member
Posts: 12
Re: Session Invalid after the OAUTH2 authentication
«
Reply #1 on:
November 15, 2023, 04:25:23 AM »
There is no one that can help me?
Logged
Print
Pages: [
1
]
« previous
next »
Roundcube Community Forum
»
News and Announcements
»
General Discussion
»
Session Invalid after the OAUTH2 authentication