Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composable factory for fosite #64

Closed
aeneasr opened this issue Aug 3, 2016 · 0 comments
Closed

Composable factory for fosite #64

aeneasr opened this issue Aug 3, 2016 · 0 comments
Assignees
Labels
feat New feature or request.
Milestone

Comments

@aeneasr
Copy link
Member

aeneasr commented Aug 3, 2016

Something along the lines of:

config := fosite.ComposeConfig{
    AccessTokenLifespan
    IDTokenLifespan
    // ....
}

oauth2 := fosite.Compose(
   fosite.NewMemoryStore(),
   // order matters...
   fosite.NewAuthorizeCodeHandler(config),
   fosite.NewRefreshCodeHandler(config), // will additionally register validators too
   // ...
)

and convenience stuff like:

oauth2 := fosite.ComposeEverythingEnabled(fosite.NewMemoryStore(), config)
@aeneasr aeneasr added the feat New feature or request. label Aug 3, 2016
@aeneasr aeneasr added this to the v1 milestone Aug 3, 2016
@aeneasr aeneasr self-assigned this Aug 3, 2016
@aeneasr aeneasr modified the milestones: 0.2.0, v1 Aug 3, 2016
aeneasr pushed a commit that referenced this issue Aug 6, 2016
openid: don't autogrant openid scope - closes #68

all: clean up scopes / arguments - closes #66

all: composable factories - closes #64

all: refactor token validation - closes #63

all: remove mandatory scope - closes #62
@aeneasr aeneasr closed this as completed in a92c755 Aug 6, 2016
budougumi0617 added a commit to budougumi0617/fosite that referenced this issue May 10, 2019
…ling and simplify structure

* readme: add gitter chat badge closes ory#67
* handler: flatten packages closes ory#70
* openid: don't autogrant openid scope - closes ory#68
* all: clean up scopes / arguments - closes ory#66
* all: composable factories - closes ory#64
* all: refactor token validation - closes ory#63
* all: remove mandatory scope - closes ory#62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant