wso2carbon programmatically/configuration always consent

105 Views Asked by At

I am trying to determine the proper way to configurer/modify an account created with WSO2 Carbon, such that the account will return authorization without the need for the user being prompted to explicitly consent.

The accounts are being created programmatically, and the "user" will never know or have the passwords, etc, so I just need the request of authorization to always generate and return a code without rerouting to the authenticate and/or consent pages.

I see that there is a PROMPT parameter that is part of the OAUTH standard, that can be set to NONE, but it says the user must be configured for "pre-configured consent"... so I guess what I am trying to figure out, is how do I set up these users, or identity server, or whatever it is I need to have PRE CONFIGURED CONSENT for the users I am creating?

1

There are 1 best solutions below

10
On

Try setting SkipUserConsent set to true at repository/conf/identity/identity.xml.

UPDATE

The above will skip the consent page only. Since you need to skip the authentication page also, you can use request path authentication.