Skip to content

Instantly share code, notes, and snippets.

@coheigea
Created October 28, 2016 13:20
Show Gist options
  • Save coheigea/977408da34a47a7f88095c2dc42f4693 to your computer and use it in GitHub Desktop.
Save coheigea/977408da34a47a7f88095c2dc42f4693 to your computer and use it in GitHub Desktop.
Using JAAS with OAuthDataProviderImpl
<bean id="oauthProvider"
class="org.apache.cxf.fediz.service.oidc.OAuthDataProviderImpl"
init-method="init" destroy-method="close">
<!-- List of accepted scopes -->
<property name="supportedScopes" ref="supportedScopes"/>
<!--
List of scopes that the consent/authorization form should make
selected by default. For example, asking a user to do an extra click
to approve an "oidc" scope is a redundant operation because this scope
is required anyway.
-->
<property name="defaultScopes" ref="coreScopes"/>
<property name="invisibleToClientScopes" ref="invisibleToClientScopes"/>
<property name="contextName" value="sts"/>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment