Hi all, I am trying to get auth token from '/oauth2/token' endpoint using following request which accesses oauth2 webapp deployed from identity-inbound-auth-oauth extension in EMM.
curl -k -d "username=test_user&scope=default appm:read device:android:enroll device:android:event:manage configuration:view device:android:disenroll&password=test%26grant_type=password" -H "Authorization: Basic blZYOWd5aFVIdmEzUEMxWjZmcnpTT19yWWdFYTpiUHliOVE3MXVuS1g4dWdXNE5QU3B2MmxJTFVh" -H "Content-Type: application/x-www-form-urlencoded" https://10.42.0.68:9443/oauth2/token This request is equivalent to the request constructed in EMM. The issue I get is whenever I enter a password with special characters (&,!,é) and it is url encoded such as test& -> test%26 and it will give a invalid grant. Any suggestions to resolve this issue would be much appreciated. Thanks & Regards, -- Sameera Gunarathne Software Engineer, WSO2 Inc. http://wso2.com <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa> Email: [email protected] Mobile: +94714155561
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
