okta-sdk-appauth-android icon indicating copy to clipboard operation
okta-sdk-appauth-android copied to clipboard

Configure client programmatically instead of using json file

Open amanzan opened this issue 6 years ago • 4 comments

It would be great to be able to configure the client programmatically instead of using the json config file. I checked the code and I think it's not possible at the moment. OAuthClientConfiguration should have a constructor (or builder pattern) to set the parameters (mClientId, mRedirectUri, etc) in code.

amanzan avatar Jan 18 '19 10:01 amanzan

Hi @amanzan we are currently working on future version feature, and we want to have this feature on our list! Thanks for your feedback.

smokienko avatar Jan 21 '19 11:01 smokienko

Any updates on this? Alternatively, providing an alternative resource id might be enough.

scottfennell avatar Jun 21 '19 21:06 scottfennell

Hi, I am running into the same issue as well and would like to configure the client programmatically for multiple build variants. Being able to do this in the code instead of using the json config file would be extremely helpful. Is there an expected completion date?

robmarinaro avatar Jul 16 '19 19:07 robmarinaro

Hi @robmarinaro if you can try using https://github.com/okta/okta-oidc-android instead. It allows you to set the config programmatically or with a json file. This SDK will be deprecated and will no longer be supported.

FeiChen-okta avatar Jul 16 '19 20:07 FeiChen-okta