Announcement Announcement Module
Collapse
No announcement yet.
custom token-services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • custom token-services

    Greetings

    I am working on OAuth M6. I am trying to use a custom tokenservices class (which extends RandomValueTokenServices) for implicit token type, which for some reasons is not working for this token type. It seems to go to the DefaultTokenServices. Although the same is working for authorization code token. My configuration looks like:

    Code:
    <oauth:authorization-server client-details-service-ref="clientDetailsService" token-services-ref="tokenServices" serialization-service-ref="trOAuth2SerializatonService" >
    		<oauth:authorization-code authorization-code-services-ref="authorizationCodeServices" />
    		<oauth:implicit />
    		<oauth:refresh-token />
    		<oauth:client-credentials />
    		<oauth:password />
    </oauth:authorization-server>
    
    <beans:bean id="tokenServices" class="com.thomsonreuters.oauth.authzserver.springsecurity.oauth2.provider.token.TrRandomValueTokenServices">
    		<beans:property name="tokenStore" ref="myTokenStore"/>
    		<beans:property name="accessTokenValiditySeconds">
    			<util:constant static-field="java.lang.Integer.MAX_VALUE"/>
    		</beans:property>
    </beans:bean>
    I will appreciate any help on this.

    Thanks,
    Sam

  • #2
    Probably a bug in the parser in M6. Did you try a more recent build? Also note that extending RandomValueTokenServices is probably not the best option for customization any more (TokenEnhancer gives you a lot of options).

    Comment

    Working...
    X