aerogear / keycloak-connect-graphql

Add Keyloak Authentication and Authorization to your GraphQL server.
Apache License 2.0
157 stars 23 forks source link

feat: export isAuthorizedByRole util function #85

Closed darahayes closed 4 years ago

darahayes commented 4 years ago

Refactors the piece of code in the hasRole resolver that actually checks the roles into a separate utility function that is exported. This can be used by other packages that want to integrate with keycloak-connect-graphql