I can't see custom grant token in devportal

Viewed 29

I have a problem with runing a custom grant in wso2.

I'm add the following lines to my deployment.toml:

[[oauth.custom_grant_type]]
name="Grant_u80"
grant_handler="com.mm.eee.libs.wso2.b002_oauth2.grant_u80.GrantHandler"
grant_validator="com.mm.eee.libs.wso2.b002_oauth2.grant_u80.GrantValidator"
IdTokenAllowed=true

Also I add token's new library in /home/wso2carbon/wso2am-4.1.0/repository/components/lib/, added library properties to /home/wso2carbon/wso2am-4.1.0/repository/conf/custom/ and verify the following default.json line is uncommented:

"oauth.token_renewal.renew_access_token_per_request": true

That it's the point:

  1. If i run wso2 on my local computer, the token works correctly in carbon and devportal.
  2. If i run wso2 on docker image in my local computer, the token works correctly too.
  3. But, if I run the same docker image in kubernetes, the custom token appears only in carbon, and not in devportal.

¿Anybody knows why the custom grant token doesn't appear in devportal applications?

Thanks you!

0 Answers
Related