@@ -116,11 +116,11 @@ mod test {
116
116
use serde_json:: json;
117
117
118
118
use crate :: {
119
- core:: {
119
+ metadata:: AuthorizationServerMetadata ,
120
+ profiles:: core:: {
120
121
metadata:: CredentialIssuerMetadata ,
121
122
profiles:: { jwt_vc_json, CoreProfilesAuthorizationDetailsObject } ,
122
123
} ,
123
- metadata:: AuthorizationServerMetadata ,
124
124
types:: CredentialUrl ,
125
125
} ;
126
126
@@ -193,7 +193,7 @@ mod test {
193
193
194
194
#[ test]
195
195
fn example_authorization_details_multiple ( ) {
196
- let _: Vec < crate :: core:: authorization:: AuthorizationDetailsObject > =
196
+ let _: Vec < crate :: profiles :: core:: authorization:: AuthorizationDetailsObject > =
197
197
serde_json:: from_value ( json ! ( [
198
198
{
199
199
"type" : "openid_credential" ,
@@ -238,7 +238,7 @@ mod test {
238
238
AuthUrl :: new ( "https://server.example.com/authorize" . into ( ) ) . unwrap ( ) ,
239
239
) ) ;
240
240
241
- let client = crate :: core:: client:: Client :: from_issuer_metadata (
241
+ let client = crate :: profiles :: core:: client:: Client :: from_issuer_metadata (
242
242
ClientId :: new ( "s6BhdRkqt3" . to_string ( ) ) ,
243
243
RedirectUrl :: new ( "https://client.example.org/cb" . into ( ) ) . unwrap ( ) ,
244
244
credential_issuer_metadata,
@@ -259,9 +259,10 @@ mod test {
259
259
let authorization_details = vec ! [ AuthorizationDetailsObject {
260
260
r#type: AuthorizationDetailsObjectType :: OpenidCredential ,
261
261
additional_profile_fields: CoreProfilesAuthorizationDetailsObject :: WithFormat {
262
- inner: crate :: core:: profiles:: AuthorizationDetailsObjectWithFormat :: JwtVcJson (
263
- authorization_detail,
264
- ) ,
262
+ inner:
263
+ crate :: profiles:: core:: profiles:: AuthorizationDetailsObjectWithFormat :: JwtVcJson (
264
+ authorization_detail,
265
+ ) ,
265
266
_credential_identifier: ( ) ,
266
267
} ,
267
268
locations: vec![ ] ,
0 commit comments