Warning: Unlike the omniauth-oauth2 gem, this gem does not support the oauth2 ‘state’ security parameter.
Your omniauth-uaa-oauth2 client application will need a corresponding UAA client registered that includes the authorization_code authorization grant type, and redirect URIs back to the full URL to your application’s /auth/cloudfoundry/callback endpoint. For example:
Cloud Foundry UAA OmniAuth Strategy
OmniAuth strategy for authenticating users using the CloudFoundry UAA server.
Add the following to your
Gemfile:For example usage see:
examples/config.rusample codeWarning: Unlike the
omniauth-oauth2gem, this gem does not support the oauth2 ‘state’ security parameter.Your
omniauth-uaa-oauth2client application will need a corresponding UAA client registered that includes theauthorization_codeauthorization grant type, and redirect URIs back to the full URL to your application’s/auth/cloudfoundry/callbackendpoint. For example: