Skip to content

UpstandingHackers/revel-persona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Revel Persona module

To use:

Reference in app.conf:

module.persona = gopkg.upstandinghackers.com/revel/modules/persona

[dev]
persona.audience = http://localhost:9000

[prod]
persona.audience = <insert URL here>

And at the top of your routes:

module:persona

Then, wire it into your controller

type AppController {
    *revel.Controller
	persona.Persona
}

func (c *AppController) Index() revel.Result {
	if c.UserEmail != nil {
		// logged in user
	}
}

About

Revel module for Mozilla Persona

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages