Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Add credential system #134

Merged
merged 1 commit into from
Sep 25, 2019
Merged

Add credential system #134

merged 1 commit into from
Sep 25, 2019

Conversation

NicolasMahe
Copy link
Member

@NicolasMahe NicolasMahe commented Sep 13, 2019

Add (optional) credential system to all gRPC api.
The credential object is converted to gRPC metadata.

Works with mesg-foundation/engine#1355.
Closes https://github.com/mesg-foundation/mesg-js/issues/138

Copy link
Member

@antho1404 antho1404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the grpc metadata shouldn't be known by the application using the library. We might change the authentication system or the communication layer.

Here we should pass a plain object to the create function (that we can type). This way the application will just pass plain object and doesn't have to deal with grpc metadata.

The promisify function can accept an object as metadata and create the grpc metadata object.

@antho1404 antho1404 modified the milestones: 4.4.0, next Sep 23, 2019
@NicolasMahe NicolasMahe force-pushed the feature/service-metadata branch from 817518e to b1a8396 Compare September 24, 2019 08:17
@NicolasMahe NicolasMahe force-pushed the feature/service-metadata branch from b1a8396 to e8b790d Compare September 24, 2019 08:29
@NicolasMahe NicolasMahe changed the title add metadata to service.create Add credential system Sep 24, 2019
@antho1404 antho1404 merged commit 0ab2ac4 into master Sep 25, 2019
@antho1404 antho1404 deleted the feature/service-metadata branch September 25, 2019 02:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basic credential system
3 participants