https://github.com/plirof2/d7_oauth2_gsis
DEPRECATED to gitlab- Drupal 7 module to externally authenticate to the Greek GSIS/Taxis oauth2 service.
https://github.com/plirof2/d7_oauth2_gsis
drupal-7 drupal-module drupal7-module
Last synced: about 1 year ago
JSON representation
DEPRECATED to gitlab- Drupal 7 module to externally authenticate to the Greek GSIS/Taxis oauth2 service.
- Host: GitHub
- URL: https://github.com/plirof2/d7_oauth2_gsis
- Owner: plirof2
- Created: 2018-06-11T11:16:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T05:49:12.000Z (almost 8 years ago)
- Last Synced: 2025-04-13T04:54:16.223Z (about 1 year ago)
- Topics: drupal-7, drupal-module, drupal7-module
- Language: PHP
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# d7_oauth2_gsis module
Module for Drupal 7 that allows connecting to an Oauth2 server. This is made for the Greek GSIS server but it could be used for other servers with modifications.
## Usage
After enabling oauth2_gsis module ,goto Structure/Block and put the Oauth2_Gsis login block to the Header (or anywhere you prefer).
You will see a button on your WebSite that will redirect you to the Oauth2 server.
## Modifications/configuration
Modifications/configuration is done by modifying these oauth2_gsis.module file functions:
function oauth2_getUrl($url_name){
function oauth2_getConData($code){
## Demo server
Before connectiong to the official/pilot GSIS servers you can try connecting to my NodeJS server modification here : https://github.com/plirof2/fake-oauth2-server
It emulates GSIS server and you can have it return whatever data you prefer
## Security proposals
- use limit_visit for /gsis and /gsis-callback_logout
- add to .htaccess this
```html
Order Deny,Allow
Deny from all
# add IPs seperated by space
Allow from 127.0.1.1 127.0.0.1
```