Skip to content

fmfi-svt/cosign-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cosign bundle

This bundle adds support for login using CoSign.

Installation

  1. Add the bundle as dependency using composer
  {
    "require": {
        "svt/cosign-bundle": "@dev"
    },
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/fmfi-svt/cosign-bundle.git"
        }
    ]
  }
  1. Enable in kernel
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        return array(
            // ...
            new SVT\CosignBundle\SVTCosignBundle(),
        ;
    }
    // ...
}
  1. Configure the firewall in security.yml:
  security:
    firewalls:
      main:
        cosign:
          login_route: login # or whichever route you use for login
        anonymous: true # usually you want to allow anonymous access
        logout:
          success_handler: security.logout.success_handler.cosign
  1. Set cosign_logout_prefix parameter in the config to your weblogin logout URL, ending in ?, e.g. https://login.uniba.sk/logout.cgi? for uniba.sk
  parameters:
    cosign_logout_prefix: "https://weblogin.example.com/cosign/logout.cgi?"
  1. Implement the login route. You may redirect the user back to page he was on or to homepage, profile page, etc. Note that the user may be already signed in usign cosign when he arrives to your site, in this case the login route will not be visited. For any actions necessary upon any login, use a login handler or a user provider, depending on your needs.

About

Symfony 2 bundle for CoSign support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages