Skip to content

elementdavv/grav-plugin-nginxsso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grav NginxSso Plugin

The NginxSso plugin for Grav adds the ability of Single Sign On by integrating with Nginx SSO.

Installation

About installation and configuration of nginx-sso, please refer to Nginx SSO.

Install the NginxSso plugin manually:

$ cd /yoursite/user/plugins
$ git clone https://github.com/elementdavv/grav-plugin-nginxsso.git nginxsso

Configuration

Simply copy user/plugins/nginxsso/nginxsso.yaml to user/config/plugins/nginxsso.yaml and make your modifications.

How does Nginx SSO work

Nginx SSO is working at domain level. It runs in the same one nginx deployment with web applications.

Nginx SSO forces visitors to login and authenticate before allowing them to access a web application. Every request is checked to ensure that it is valid.

After authenticated, Nginx SSO sends the visitor's email to web applications.

What does NginxSso plugin do

The NginxSso plugin obtains the email from HTTP header, logins the user automatically in grav if not logined, and register the user if needed. If there is no email in HTTP header, the NginxSso does nothing. It does not interfere with Grav-builtin login plugin.

About

Single Sign On plugin for Grav

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published