@@ -65,6 +65,7 @@ def test_fetch_server_config_by_well_known_url_success_with_transpile(self):
6565 "issuer" : sample_issuer ,
6666 "authorization_endpoint" : "https://example.com/oauth/authorize" ,
6767 "token_endpoint" : "https://example.com/oauth/token" ,
68+ "scopes_supported" : ["scope1" , "scope2" , "scope3" ],
6869 }
6970
7071 responses .add (responses .GET , url = sample_well_known_url , json = sample_response )
@@ -83,6 +84,7 @@ def test_fetch_server_config_by_well_known_url_success_with_transpile(self):
8384 )
8485 assert config .metadata .token_endpoint == "https://example.com/oauth/token"
8586 assert config .metadata .response_types_supported == ["code" ]
87+ assert config .metadata .scopes_supported == ["scope1" , "scope2" , "scope3" ]
8688
8789 @responses .activate
8890 def test_fetch_server_config_oauth_success (self ):
@@ -144,6 +146,7 @@ def test_fetch_server_config_oidc_success(self):
144146 "authorization_endpoint" : "https://example.com/authorize" ,
145147 "token_endpoint" : "https://example.com/token" ,
146148 "response_types_supported" : ["code" ],
149+ "scopes_supported" : ["openid" , "profile" , "email" ],
147150 }
148151
149152 responses .add (
@@ -159,6 +162,7 @@ def test_fetch_server_config_oidc_success(self):
159162 assert config .metadata .authorization_endpoint == "https://example.com/authorize"
160163 assert config .metadata .token_endpoint == "https://example.com/token"
161164 assert config .metadata .response_types_supported == ["code" ]
165+ assert config .metadata .scopes_supported == ["openid" , "profile" , "email" ]
162166
163167 @responses .activate
164168 def test_fetch_server_config_oidc_with_path_success (self ):
0 commit comments