node-oauth2-server
node-oauth2-server copied to clipboard
Implement validateRedirectUri model function
Why should we not be able to verify our uris by ourself. // TODO: Add to docs
Hi, to get this merged we'd need some tests & docs please
@TheNoim Can you describe your use case for this? I'm not quite sure why it's necessary...
I can not remember my exact use case or in which project I wanted to use this but a basic use case would be one of this:
- Custom uri support
- wildcard support if wanted
- own validation rules
+1
redirect_uri
doesn't have to be exactly equal to any of the redirectUris
. Conditions listed below are acceptable on some occasions.
- same origin and same pathname but different query
- same origin but different pathname
- same domain but different protocol
- same top level domain
Passing context to all methods also will do the trick.
There are quite a lot of issues depend on this feature:
#536 #336 #150
Any update for this pull request?
https://github.com/oauthjs/node-oauth2-server/issues/229
Push, we realy need wildcard redirect uris