Skip to content

Commit

Permalink
feat(ace_security_scheme.dart)!: parse as field as Uri
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 4, 2024
1 parent ed9daa8 commit 7755c3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/binding_coap/coap_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ final class CoapClient extends ProtocolClient

return AuthServerRequestCreationHint(
authorizationServer:
aceSecurityScheme.as ?? creationHint?.authorizationServer,
aceSecurityScheme.as?.toString() ?? creationHint?.authorizationServer,
scope: scope ?? creationHint?.scope,
audience: aceSecurityScheme.audience ?? creationHint?.audience,
clientNonce: creationHint?.clientNonce,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/core/definitions/security/ace_security_scheme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final class AceSecurityScheme extends SecurityScheme {
final jsonLdType = json.parseArrayField<String>("@type");
final proxy = json.parseUriField("proxy", parsedFields);

final as = json.parseField<String>("ace:as", parsedFields);
final as = json.parseUriField("ace:as", parsedFields);
final cnonce = json.parseField<bool>("ace:cnonce", parsedFields);
final audience = json.parseField<String>("ace:audience", parsedFields);
final scopes =
Expand All @@ -66,7 +66,7 @@ final class AceSecurityScheme extends SecurityScheme {
String get scheme => aceSecuritySchemeName;

/// URI of the authorization server.
final String? as;
final Uri? as;

/// The intended audience for this [AceSecurityScheme].
final String? audience;
Expand Down

0 comments on commit 7755c3e

Please sign in to comment.