وردپرس

Storing OAuth2 Client ID in wp-config


Aloha! We currently use this amazing plugin on a site that we’re moving into Pantheon. For our SSO, we’re using OAuth2 with Microsoft Azure.

The issue we realized we’ll run into is that we will have different Client IDs and Client Secrets for dev, test, and prod on Pantheon. If we ever copy the prod database to test and dev, the test and dev Client IDs and Secrets will be incorrect for those sites, so SSO will break until we fix them manually.

I see that there is a way to define AUTHORIZER_OAUTH2_CLIENT_SECRET in wp-config, which we could do in Pantheon programmatically based on environment, but I don’t see a way in Authorizer to define the Client ID in wp-config (something like AUTHORIZER_OAUTH2_CLIENT_ID).

Is the Client ID something that also could be added as an option to be defined in wp-config?

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا