Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable OAuth Scopes via Environment Variables #1055

Open
torkashvand opened this issue Apr 26, 2024 · 2 comments
Open

Configurable OAuth Scopes via Environment Variables #1055

torkashvand opened this issue Apr 26, 2024 · 2 comments

Comments

@torkashvand
Copy link
Contributor

torkashvand commented Apr 26, 2024

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
Copy link
Contributor Author

I am preparing a PR for this.

@torkashvand
Copy link
Contributor Author

torkashvand commented Apr 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant