@@ -65,6 +65,7 @@ def test_fetch_server_config_by_well_known_url_success_with_transpile(self):
65
65
"issuer" : sample_issuer ,
66
66
"authorization_endpoint" : "https://example.com/oauth/authorize" ,
67
67
"token_endpoint" : "https://example.com/oauth/token" ,
68
+ "scopes_supported" : ["scope1" , "scope2" , "scope3" ],
68
69
}
69
70
70
71
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):
83
84
)
84
85
assert config .metadata .token_endpoint == "https://example.com/oauth/token"
85
86
assert config .metadata .response_types_supported == ["code" ]
87
+ assert config .metadata .scopes_supported == ["scope1" , "scope2" , "scope3" ]
86
88
87
89
@responses .activate
88
90
def test_fetch_server_config_oauth_success (self ):
@@ -144,6 +146,7 @@ def test_fetch_server_config_oidc_success(self):
144
146
"authorization_endpoint" : "https://example.com/authorize" ,
145
147
"token_endpoint" : "https://example.com/token" ,
146
148
"response_types_supported" : ["code" ],
149
+ "scopes_supported" : ["openid" , "profile" , "email" ],
147
150
}
148
151
149
152
responses .add (
@@ -159,6 +162,7 @@ def test_fetch_server_config_oidc_success(self):
159
162
assert config .metadata .authorization_endpoint == "https://example.com/authorize"
160
163
assert config .metadata .token_endpoint == "https://example.com/token"
161
164
assert config .metadata .response_types_supported == ["code" ]
165
+ assert config .metadata .scopes_supported == ["openid" , "profile" , "email" ]
162
166
163
167
@responses .activate
164
168
def test_fetch_server_config_oidc_with_path_success (self ):
0 commit comments