-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
Still needs unit tests and some work on defining the rest api |
@Moopli this endpoint must also register and associate the device to the user's profile, therefore needs as input the user's |
Also, endpoint path should be renamed to just |
a51c561
to
b9d1230
Compare
pkg/bootstrap/user/userprofile.go
Outdated
@@ -16,6 +16,7 @@ import ( | |||
// Profile is the user's bootstrap profile. | |||
type Profile struct { | |||
ID string | |||
AAGUID string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Followup: #58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
b9d1230
to
315e74e
Compare
Codecov should be fixed. |
315e74e
to
2dd63ab
Compare
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
=======================================
Coverage 87.69% 87.69%
=======================================
Files 8 8
Lines 455 520 +65
=======================================
+ Hits 399 456 +57
- Misses 34 39 +5
- Partials 22 25 +3
Continue to review full report at Codecov.
|
2dd63ab
to
ffb5307
Compare
Registers a user device AAGUID to the user's profile, after validating that the device's certificate is valid according to the given intermediate certificates and the server's trusted set of device root CAs. POST to /device with a JSON body: { "x5c": [ "---USER DEVICE CERT, PEM ENCODED---", "---INTERMEDIATE CERT 1, PEM ENCODED---", "---INTERMEDIATE CERT 2, PEM ENCODED---", ... ], "sub": "user sub", "aaguid": "user device AAGUID" [optional] } Closes trustbloc#56 Signed-off-by: Filip Burlacu <filip.burlacu@securekey.com>
ffb5307
to
9f8daf4
Compare
Signed-off-by: Filip Burlacu filip.burlacu@securekey.com