workfloworchestrator / orchestrator-ui-library

Component library for the orchestrator-ui (v2) which is published in npm
6 stars 3 forks source link

Configurable OAuth Scopes via Environment Variables #1055

Open torkashvand opened 3 weeks ago

torkashvand commented 3 weeks ago

Issue: The authorization scopes for OAuth are currently hardcoded in the NextAuth.js configuration, limiting operational flexibility across different environments.

Proposed Solution: Implement the ability to set OAuth scopes through environment variables, allowing for easy adjustments without code changes.

Changes Proposed:

authorization: { params: { scope: process.env.NEXTAUTH_AUTHORIZATION_SCOPE ?? 'openid profile' } },
torkashvand commented 3 weeks ago

I am preparing a PR for this.

torkashvand commented 3 weeks ago

These are PRs:

https://github.com/workfloworchestrator/example-orchestrator-ui/pull/26

https://github.com/workfloworchestrator/orchestrator-ui-library/pull/1056