Skip to content

Commit 12451fc

Browse files
committed
merge: '2-small-issues-preventing-full-pub-dev-score' into 'main'
Resolve "Small issues preventing full pub.dev score" Closes #2 See merge request namib-master/libraries/dart_dcaf!3
2 parents 357f64c + 80205c8 commit 12451fc

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 0.1.0-pre2 --- 2022-05-09
8+
9+
### Fixed
10+
- Formatting was wrong in a few files.
11+
- Package description was expanded to follow pub.dev guidelines.
12+
713
## 0.1.0-pre --- 2022-04-27
14+
15+
### Added
816
- CBOR de-/serializable model of the ACE-OAuth framework has been added:
917
- Binary-, text-encoded and [AIF](https://datatracker.ietf.org/doc/html/draft-ietf-ace-aif)-scopes
1018
- A variant of the AIF format specific to [libdcaf](https://gitlab.informatik.uni-bremen.de/DCAF/dcaf) is also supported
@@ -13,4 +21,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1321
- Error responses
1422
- Various smaller types (`CoseKey`, `GrantType`, `ProofOfPossessionKey`, `TokenType`...)
1523
- Use `serialize()` or `fromSerialized()` to serialize and deserialize these types.
16-
- Pre-release because we depend on the Dart Beta SDK (2.17.0).
24+
- Pre-release because we depend on the Dart Beta SDK (2.17.0).

lib/src/cbor.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ extension NullableEquals on ByteString? {
3434

3535
/// Abstract class intended for data structures which are serializable to CBOR.
3636
abstract class CborSerializable {
37-
3837
/// Don't use this. This class was not designed to be extended by clients.
3938
@protected
4039
CborSerializable();

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dcaf
2-
description: An implementation of the ACE-OAuth framework.
3-
version: 0.1.0-pre
2+
description: An implementation of the ACE-OAuth framework, intended for OAuth clients. Its main feature is CBOR-(de-)serializable data models.
3+
version: 0.1.0-pre2
44
repository: https://github.com/namib-project/dart_dcaf
55

66
environment:

test/dcaf_test.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,8 @@ void main() {
290290

291291
group('Access Token Request', () {
292292
test('Symmetric Request', () {
293-
final request = AccessTokenRequest(
294-
clientId: "myclient",
295-
audience: "tempSensor4711"
296-
);
293+
final request =
294+
AccessTokenRequest(clientId: "myclient", audience: "tempSensor4711");
297295
expectSerDeRequest(
298296
request, "A2056E74656D7053656E736F72343731311818686D79636C69656E74");
299297
});
@@ -454,13 +452,13 @@ void main() {
454452
});
455453

456454
group('Error Response', () {
457-
458455
test('Simple Error', () {
459456
final error = ErrorResponse(
460457
error: ErrorCode.unauthorizedClient,
461458
description: "You are not authorized to receive this token.",
462459
uri: "https://http.cat/401");
463-
expectSerDeError(error, "A3181E04181F782D596F7520617265206E6F7420617574686F72697A656420746F2072656365697665207468697320746F6B656E2E18207468747470733A2F2F687474702E6361742F343031");
460+
expectSerDeError(error,
461+
"A3181E04181F782D596F7520617265206E6F7420617574686F72697A656420746F2072656365697665207468697320746F6B656E2E18207468747470733A2F2F687474702E6361742F343031");
464462
});
465463
});
466464
}

0 commit comments

Comments
 (0)