asgardeo-samples / asgardeo-enterprise-ciam-sample

An enterprise use case sample that captures the overall CIAM story that utilize Asgardeo and Choreo.
Apache License 2.0
0 stars 2 forks source link

Complex env variable should be simplifed #9

Closed ashendes closed 1 year ago

ashendes commented 1 year ago

Description: The variable REACT_APP_CHOREO_AUTH_TOKEN requires a compound value that is generated by Base64 encoding the combination of an app client ID and secret. This is not an ideal way to add configurations and needs to be simplified. This variable should be split into the client ID and secret and the value generation should be done within the code. REACT_APP_CHOREO_CLIENT_ID already exists, hence, only REACT_APP_CHOREO_CLIENT_SECRET needs to be added.

[1] https://github.com/asgardeo-samples/asgardeo-enterprise-ciam-sample/blob/2b7d6ce25108080d4bfd3f48b4e4699f0c5b568a/src/apps/kfone-website/.env.example#L11