Results 1 to 2 of 2

Thread: custom token-services

  1. #1
    Join Date
    Apr 2012
    Posts
    26

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •