Can we configure client id and secret key dynamically in case of OAuth2.0?If so then how?
I don’t think we can do that. We may need to create multiple OAuth2.0 Auth Profiles for achieving it.
If you mean to update the authentication profile with client id and client secret which can vary.
Try doing an Obj-Open on “Data-Admin-Security-AuthenticationProfile” using pyProfileName & set Pyclientid and pyclientsecret using property-set-special and then do obj-save
Hi @VVNagaSaiN it was asked in an interview no specific scenario was specified,I just cross questioned the interviewer to get an idea of this ,he stated to use pages and classes to pass them dynamically.Which is not clear to me either.
Hi @Animesh it was asked in an interview no specific scenario was specified,I just cross questioned the interviewer to get an idea of this ,he stated to use pages and classes to pass them dynamically.Which is not clear to me either.Please let me know how pages and classes will help in passing the values dynamically?
We can use Application settings rules to dynamically fetch client id and secret for each environment.
You can also use configuration set that can be controlled from App Studio.
Infinity '26 also offers some additional paths, if you want to do this dynamically.