Dancer2-Plugin-OIDC
view release on metacpan or search on metacpan
# Dancer2::Plugin::OIDC
This plugin makes it easy to integrate the OpenID Connect protocol into a Dancer2 application.
It essentially uses the [OIDC-Client](https://metacpan.org/dist/OIDC-Client) distribution.
## Features
- creates the endpoint used by the provider to redirect the user back to your application
- retrieves the provider metadata and JWK keys when the application is launched
- redirects the browser to the authorize URL to initiate an authorization code flow
- gets the token(s) from the provider
- the tokens are stored for later use or for future requests
- refreshes access token if needed
- verifies a JWT token with support for automatic JWK key rotation
- introspects the access token
- gets the user information from the *userinfo* endpoint
- exchanges the access token
- redirects the browser to the logout URL
## Documentation
- [Plugin documentation](https://metacpan.org/pod/Dancer2::Plugin::OIDC)
- [Configuration](https://metacpan.org/pod/OIDC::Client::Config)
## Security Recommendation
When using Dancer2::Plugin::OIDC, it is highly recommended to configure the framework to store session data, including sensitive tokens such as access and refresh tokens, on the backend rather than in client-side cookies. Although cookies can be sign...
## Limitations
- no support for *tls_client_auth* client authentication method
- no support for Implicit or Hybrid flows (applicable to front-end applications only and deprecated)
( run in 0.443 second using v1.01-cache-2.11-cpan-39bf76dae61 )