vamsii777 / vapor-oauth

OAuth2 Provider Library for Vapor
MIT License
3 stars 2 forks source link

Refactor Scope Handling to String Type in Compliance with OAuth RFC Standards #15

Closed vamsii777 closed 7 months ago

vamsii777 commented 7 months ago

This pull request introduces a significant update to OAuth implementation, specifically focusing on the handling of the scopes property. In alignment with OAuth RFC standards, we have transitioned the scopes property from being an array to a single string. This change ensures compliance with OAuth specifications and enhances the interoperability of OAuth handling.

Changes

Impact

Background

According to the OAuth RFC, the scope parameter should be represented as a list of space-delimited, case-sensitive strings. This format allows for a more flexible and standardized way of representing scopes, facilitating better interoperability across different systems and OAuth providers.