Skip to content

Commit 7b8191b

Browse files
committed
Remove the Matrix scope-related code in oidc-client
1 parent d4fdc91 commit 7b8191b

File tree

5 files changed

+19
-333
lines changed

5 files changed

+19
-333
lines changed

crates/oidc-client/src/requests/authorization_code.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use oauth2_types::{
2222
AccessTokenRequest, AccessTokenResponse, AuthorizationCodeGrant, AuthorizationRequest,
2323
Display, Prompt,
2424
},
25-
scope::Scope,
25+
scope::{Scope, OPENID},
2626
};
2727
use rand::{
2828
distributions::{Alphanumeric, DistString},
@@ -35,11 +35,7 @@ use super::jose::JwtVerificationData;
3535
use crate::{
3636
error::{AuthorizationError, IdTokenError, TokenAuthorizationCodeError},
3737
requests::{jose::verify_id_token, token::request_access_token},
38-
types::{
39-
client_credentials::ClientCredentials,
40-
scope::{ScopeExt, ScopeToken},
41-
IdToken,
42-
},
38+
types::{client_credentials::ClientCredentials, IdToken},
4339
};
4440

4541
/// The data necessary to build an authorization request.
@@ -247,7 +243,7 @@ fn build_authorization_request(
247243
(None, None)
248244
};
249245

250-
scope.insert_token(ScopeToken::Openid);
246+
scope.insert(OPENID);
251247

252248
let auth_request = FullAuthorizationRequest {
253249
inner: AuthorizationRequest {

crates/oidc-client/src/types/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//! OAuth 2.0 and OpenID Connect types.
88
99
pub mod client_credentials;
10-
pub mod scope;
1110

1211
use std::collections::HashMap;
1312

crates/oidc-client/src/types/scope.rs

Lines changed: 0 additions & 311 deletions
This file was deleted.

0 commit comments

Comments
 (0)