Comments (3)
Sounds great. Thanks for all of the hard work on Guardian.
from sentinel.
@hassox Thanks for sending this my way. Very excited about the pipeline change. In a branch I'm working on accomplishing the same kind of functionality so seeing this is awesome.
The timing also works out well, as my lockable module was going to implement some breaking changes, so this will work nicely into the next version.
Supporting token types other than JWT
Just a lack of knowledge on my part, but can you give examples of that?
Everything else looks very straight forward, so I'll take a look at the docs and let you know if I have any other questions.
from sentinel.
Hey @britton-jb
The new version allows multiple modules to be configured. As part of that, each module specifies a token_module
. This module is setup as a behaviour (see Guardian.Token
) So long as the token module conforms to the behaviour then it should be fine. The only type of token that Guardian supports out of the box is still JWT but this mechanism allows 3rd party token modules to be created. It's in response to some requests we've had. I have no current plans to implement another type of token but the possibility is there moving forward.
The most immediate use case of this functionality I think is to allow support for specific producers (like Auth0) although a full token module wouldn't be needed for that. Only a change to the verifier and a specific secret lookup.
We've tried to keep it as backward compatible as possible but still push though cleanup of various apis and the overall structure of the lib.
If you want hit me up on Slack and I'll try and answer any questions you have mate :)
from sentinel.
Related Issues (20)
- Compilation error on file web/router.ex == HOT 3
- example sentinel app HOT 4
- Ueberauth JSON API HOT 3
- Ability to generate controllers and views during installation HOT 3
- Error while visiting sentinel paths HOT 7
- Error compiling - no function clause matching in Keyword.merge/2 HOT 1
- Error when using it inside an umbrella HOT 2
- Detail Mix Install Task Steps
- Document example a few example API requests HOT 4
- Disable confirmation
- Custom redirect paths HOT 7
- ** (Mix) The task "sentinel.gen.views" could not be found HOT 3
- with statement in Sentinel.Controllers.Html.AuthController.new_user has no else clause
- Question: Feature testing with Wallaby and ExMachina HOT 2
- Code Error when authenticating through third party provider (i.e. Github)
- Issues using with phoenix 1.3.0 HOT 4
- Uberauthenticator duplicate function with different bodies HOT 1
- Token Customization HOT 1
- Custom Model integration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentinel.