gin-keycloak | keycloak middleware | Identity Management library
kandi X-RAY | gin-keycloak Summary
kandi X-RAY | gin-keycloak Summary
keycloak middleware
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- authChain is a middleware chain middleware
- getPublicKey retrieves a public key from the cache
- getPublicKeyFromCacheOrBackend retrieves a public key from the public key cache
- getTokenContainer retrieves the token container from the request
- decodeToken decodes an OAuth2 token
- RequestLogger is a middleware that logs a request
- GroupCheck returns true if token is in the TokenContainer
- GetTokenContainer returns a TokenContainer from an oauth2 . Token
- UidCheck returns true if the token is in the request list
- MarmCheck returns true if the token access token has a role access
gin-keycloak Key Features
gin-keycloak Examples and Code Snippets
Community Discussions
Trending Discussions on gin-keycloak
QUESTION
I'm developing an app for ios and android in react native and need to use keycloak for authorization, but struggling to find a good way.
I've tried react-native-app-auth and it works good to sign in but not to sign out. Not so strange because react-native-app-auth states that: "Keycloak does not specify a revocation endpoint so revoke functionality doesn't work."
I've had a look at a few other npm packages such as react-native-login-keycloak but they seem to lack maintenance and opens a lot of browser tabs.
Any ideas of how to solve this or maybe do a work-around for react-native-app-auth? Thank you for your help!
...ANSWER
Answered 2020-Jun-04 at 17:17Check the openid-connect configuration endpoint.
You can find it in your keycloak server
https://{your-keycloak-server}/auth/realms/{your_realm}/.well-known/openid-configuration
you will find the endpoints for:
authorization_endpoint
token_endpoint
end_session_endpoint
Add those to your react-native-app-auth configuration.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gin-keycloak
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page