Hi Pushpalanka,

As you mentioned in the note this is working when create new SP with the
above identity.xml configuration only.
Thanks a lot.

Regards,

On Tue, Nov 17, 2015 at 4:20 PM, Pushpalanka Jayawardhana <[email protected]>
wrote:

> Hi Kavitha,
>
> I tried the scenario with both the token processors and it worked fine for
> me while encrytpting as expected.
> There are no specific configuration needed other than what you have done.
>
> *Note:* After doing the config change in identity.xml we should create a
> new Service provider and try. This is because we generate and store the
> client id and secret at the time of service provider creation and store.
> Changing the token processor after this does not affect the values already
> stored in dtabase.
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Tue, Nov 17, 2015 at 3:46 PM, Kavitha Subramaniyam <[email protected]>
> wrote:
>
>> Hi IS team,
>>
>> I have tried access token generation with token encryption as below and I
>> couldn't generate a token: jira raised for this issue[1]
>>
>> Can you please let me know if there are any more configuration needs to
>> be done ?
>>
>> Steps:
>> ----------
>>
>> - Modify the configuration for TokenPersistenceProcessor in the
>> identity.xml.
>> change this
>>
>> <TokenPersistenceProcessor>org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextPersistenceProcessor</TokenPersistenceProcessor>
>>
>> to this
>>
>> <TokenPersistenceProcessor>org.wso2.carbon.identity.oauth.tokenprocessor.EncryptionDecryptionPersistenceProcessor</TokenPersistenceProcessor>
>>
>>
>> - Run the server and create a SP
>> - Configure OAuth/OpenID connect configuration with OAuth-2.0
>> - Try access token generation by curl
>>
>> curl -v -X POST --basic -u
>> jW5fQYoSfdhzrnGVXTjmnPW23EMa:sZ3M13Bjdd3zWvR6vfdE5qaJZjEa -H
>> "Content-Type:application/x-www-form-urlencoded;charset=UTF-8" -k -d
>> "grant_type=password&scope=openid&username=admin&password=admin"
>> https://localhost:9443/oauth2/token
>>
>>
>>
>> There is no description in IS doc for token encryption: a documentation
>> jira raised for this[2]
>>
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4089
>>
>> [2] https://wso2.org/jira/browse/DOCUMENTATION-2719
>>
>>
>> --
>> Kavitha.S
>> *Software Engineer -QA*
>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>> [email protected] <[email protected]>
>>
>
>


-- 
Kavitha.S
*Software Engineer -QA*
Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
[email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to