Add more environment configs for libflitter values
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

master
Garrett Mills 4 years ago
parent 1646fbd2a0
commit d3c1e383da
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -122,7 +122,7 @@ const auth_config = {
// Information about the endpoint flitter-auth will use to redeem
// the authorization_code token for a bearer token
source_token: {
endpoint: 'https://coreid.garrettmills.dev/auth/service/oauth2/redeem',
endpoint: env('AUTH_COREID_REDEEM_URL', 'https://coreid.garrettmills.dev/auth/service/oauth2/redeem'),
// Field name where the authorization_code token will be specified in the request
token_key: 'code',
@ -143,7 +143,7 @@ const auth_config = {
// Information about the endpoint flitter-auth will use to get
// user information after it retrieves a bearer token
user_data: {
endpoint: 'https://coreid.garrettmills.dev/api/v1/auth/users/me',
endpoint: env('AUTH_COREID_USER_URL', 'https://coreid.garrettmills.dev/api/v1/auth/users/me'),
method: 'get', // 'get' or 'post' only
// In the response data, what key is the user data in?

@ -20,7 +20,11 @@ const server_config = {
* The logging level. Usually, 1-4.
* The higher the level, the more information is logged.
*/
level: env("LOGGING_LEVEL", 1)
level: env("LOGGING_LEVEL", 1),
api_logging: env('LOG_API_RESPONSES', false),
error_logging: env('LOG_REQUEST_ERRORS', true),
},
session: {

Loading…
Cancel
Save