Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Where can I download the "AzureOAuthSMTP plugin"?

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 1 week ago #265580 by yuto0419
Please help us help you and fill where relevantlease help us help you and fill where relevant:
Your LimeSurvey version: 5.6.9+230306
Own server or LimeSurvey hosting:Own server(Azure)
Survey theme/template:fruity
==================
I found a manual about the "AzureOAuthSMTP plugin".
manual.limesurvey.org/AzureOAuthSMTP_Plugin

But there was no information on where I could download it.
Where can I download the "AzureOAuthSMTP plugin"?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 1 week ago #265582 by Joffm
Hi,
Read the manual "Global settings / Email settings".
You see: it's included in LimeSurvey.
You only have to install and activate it in the "plugin manager".

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 1 week ago - 3 months 1 week ago #265584 by yuto0419
Maybe it's not compatible with LS version 5.x?

Is there any way I can use it somehow with the current version 5.6.9+230306?
The survey has just been published and now I can't update the LS version.
Last edit: 3 months 1 week ago by yuto0419.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 1 week ago #265589 by DenisChenu
Replied by DenisChenu on topic Where can I download the "AzureOAuthSMTP plugin"?
I add the feature starting part 6.3.0

Really hard to adapt to version lower to 6.3.0
See the Pull Request : github.com/LimeSurvey/LimeSurvey/pull/3054/

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 1 week ago - 3 months 1 week ago #265591 by yuto0419
I see...Looking at the pull request, it seems difficult....

The website I created runs according to the following operation flow.
 1. Access the website
 2. Azure AD OAuth authentication sign-in
 3. LS authentication login
 4. LS administration screen
Because of double authentication in 2 and 3, I cannot use the LS remotecontrol API.
Is there a way to implement a remotecontrol API that bypasses this double authentication without using the "AzureOAuthSMTP plugin"?


This is the error I get when I run the remotecontrol API.
"401 IDX10205: Issuer validation failed."

When I contacted Azure, I was told that "It will be necessary to implement an implementation that validates the issuer on the app side."
Last edit: 3 months 1 week ago by yuto0419.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 1 week ago #265594 by DenisChenu
Replied by DenisChenu on topic Where can I download the "AzureOAuthSMTP plugin"?
Why talk about AzureOAuthSMTP done for email when you need something about login ?

You need gitlab.com/SondagesPro/Authentification/AuthRemoteToken

It's done for  “Because of double authentication in 2 and 3, I cannot use the LS remotecontrol API.“

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 6 days ago - 3 months 6 days ago #265637 by yuto0419

Why talk about AzureOAuthSMTP done for email when you need something about login ?

You need gitlab.com/SondagesPro/Authentification/AuthRemoteToken

It's done for  “Because of double authentication in 2 and 3, I cannot use the LS remotecontrol API.“

If so, please tell me how to use AuthRemoteToken.
The settings described in README.md at gitlab.com/SondagesPro/Authentification/AuthRemoteToken have been completed.

I wrote the following program in PHP.
Code:
require 'vendor/autoload.php';
define('LS_BASEURL', 'https://test.azurewebsites.net/r6');
define('LS_USER', $tokenKey);
define('LS_PASSWORD', $password);
$myJSONRPCClient = new \org\jsonrpcphp\JsonRPCClient(LS_BASEURL . '/index.php?r=plugins/unsecure&plugin=AuthRemoteToken');
$sessionKey = $myJSONRPCClient->get_session_key(LS_USER, LS_PASSWORD);

When I run this program, I get the same error as the LS remotecontrol API: {"error":"Incorrect response id: (request id: 1)"}.
Am I using it wrong?
I don't know how to bypass double authentication 2 and 3 with AuthRemoteToken.


 
Last edit: 3 months 6 days ago by yuto0419.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 5 days ago #265644 by DenisChenu
Replied by DenisChenu on topic Where can I download the "AzureOAuthSMTP plugin"?
/index.php?r=plugins/unsecure&plugin=AuthRemoteToken'

maybe

Why do you encode 1 ?

Else an Incorrect response id: (request id: 1) its' a 500 error, not a user/pass erroir.

If you have an Incorrect response id with the default link : there are other issue.
Can you check PHP log ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 5 days ago - 3 months 5 days ago #265645 by yuto0419

/index.php?r=plugins/unsecure&plugin=AuthRemoteToken'

maybe

Why do you encode 1 ?

Else an Incorrect response id: (request id: 1) its' a 500 error, not a user/pass erroir.

If you have an Incorrect response id with the default link : there are other issue.
Can you check PHP log ?

It was encoded when I copied and pasted it into the chat here, but in the actual program it is "index.php?r=plugins/unsecure&plugin=AuthRemoteToken".


The PHP log output looks like this:Trying to access array offset on value of type null in /home/site/wwwroot/vendor/weberhofer/jsonrpcphp/src/org/jsonrpcphp/JsonRPCClient.php

Here is the API response: 401 Unauthorized

However, this error only occurs when using dual authentication.
How do I implement this if I am using two authentications, LS and Azure?

Do I need to set the AuthRemoteToken tokenKey to Azure authentication(OIDC)?
Or do I need to set the Azure authentication key to LS?
Last edit: 3 months 5 days ago by yuto0419.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 5 days ago - 3 months 5 days ago #265646 by DenisChenu
Replied by DenisChenu on topic Where can I download the "AzureOAuthSMTP plugin"?

Do I need to set the AuthRemoteToken tokenKey to Azure authentication(OIDC)?
Or do I need to set the Azure authentication key to LS?

 
You read the README ?

gitlab.com/SondagesPro/Authentification/...g-for-remote-control
  • If user is allowed to use Access Token key : there is a new menu item in user menu
  • User can manage multiple access token
  • Token Key and Password are randomly set when create
  • Token password is encrypted, the user must keep it himself, there are no way to update it.
  • The URL to be used for RemoteControl connection are shown in Token Key manager
  • Token Key must be used as username and Token Password as password when using get_session_key

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 3 months 5 days ago by DenisChenu.

Please Log in to join the conversation.

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 5 days ago #265647 by yuto0419

You read the README ?

gitlab.com/SondagesPro/Authentification/...g-for-remote-control

  • If user is allowed to use Access Token key : there is a new menu item in user menu
  • User can manage multiple access token
  • Token Key and Password are randomly set when create
  • Token password is encrypted, the user must keep it himself, there are no way to update it.
  • The URL to be used for RemoteControl connection are shown in Token Key manager
  • Token Key must be used as username and Token Password as password when using get_session_key


I have read this and followed the instructions, but the error persists.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 5 days ago #265648 by DenisChenu
Replied by DenisChenu on topic Where can I download the "AzureOAuthSMTP plugin"?
It work for me and some clients.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose