ging / fiware-idm

OAuth 2.0-based authentication of users and devices, user profile management, Single Sign-On (SSO) and Identity Federation across multiple administration domains.
https://keyrock-fiware.github.io
MIT License
37 stars 81 forks source link

Update app.js #289

Closed jason-fox closed 2 years ago

jason-fox commented 2 years ago

Proposed changes

Disable CSP if running an insecure HTTP instance.Setting a proper Content Security Policy (CSP) makes no sense if just running a simple test environment over HTTP. Only if HTTPS is enabled should the default policy be restricted. Note that the OAuth2 authorisation code flow will not work without liberalising the IDM_CSP_FORM_ACTION to relevant callback sites e.g.: IDM_CSP_FORM_ACTION=example.com, test.com

Types of changes

What types of changes does your code introduce to the project: Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

github-actions[bot] commented 2 years ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️