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

Adding support for Keycloak, LimeSurvey6 and French #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
570 changes: 339 additions & 231 deletions AuthOAuth2.php

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ _authorization code grant_ flow and supports automatic creation of new users.
# Installation

- go to [releases](https://github.com/BDSU/limesurvey-oauth2/releases) and download the latest release Zip archive
- for LimeSurvey 5.x: upload the Zip archive in the plugin manager
- alternatively you can zip from sources:
````bash
cd ..
# for the plugin to install, the directory shall have the sames name as the php file
mv limesurvey-oauth2 AuthOAuth2
zip -r AuthOAuth2.zip AuthOAuth2
````
- for LimeSurvey 5.x and above : upload the Zip archive in the plugin manager
- for LimeSurvey 3.x: extract the Zip archive and place the contents in `<limesurvey_root>/plugins/AuthOAuth2/`
- configure the plugin in the plugin manager
- activate the plugin in the plugin manager
Expand Down Expand Up @@ -42,12 +49,14 @@ select OAuth2 as authentication method manually.
Below the _Use as default login_ checkbox a URL is shown with which the default login form can always be accessed
to login using the internal database even when automatic redirection is enabled.

You can find [a configuration example for Azure Active Directory here](docs/examples/AzureAD.md).
You can find [a configuration example for Azure Active Directory here](docs/examples/AzureAD.md).
You can find [a configuration example for Keycloak here](docs/examples/Keycloak.md).

# Supported LimeSurvey Versions

This plugin was tested with

- A recent version v6.4.3 (PHP 8.1)
- the latest stable release v5.2.5
- the latest LTS release v3.27.28

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bdsu/limesurvey-oauth2",
"description": "Enable Single Sign-On for LimeSurvey using OAuth2",
"version": "1.0.0",
"version": "1.1.0",
"type": "library",
"readme": "Readme.md",
"homepage": "https://github.com/BDSU/limesurvey-oauth2",
Expand All @@ -15,8 +15,8 @@
"OAuth2"
],
"require": {
"php": ">=5.6",
"league/oauth2-client": "^2.6"
"php": ">=8",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then unsure for compatibility with 3.X :)

"league/oauth2-client": ">=2.6"
},
"license": "MIT"
}
Loading