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

Commit

Permalink
Update AccessKeyInfoService
Browse files Browse the repository at this point in the history
  • Loading branch information
rdegnan committed Jul 24, 2018
1 parent d55bd5e commit 881d0b9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
4 changes: 4 additions & 0 deletions access-key-info-idl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ plugins {
id 'com.google.protobuf' version '0.8.5'
}

dependencies {
protobuf 'com.google.protobuf:protobuf-java:3.6.0'
}

protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.6.0'
Expand Down
41 changes: 22 additions & 19 deletions access-key-info-idl/src/main/proto/proteus/accesskey_info.proto
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
syntax = "proto3";

package io.netifi.proteus.controlcenter.accesskey.service;
package io.netifi.proteus.broker.access;

option java_package = "io.netifi.proteus.controlcenter.accesskey.service";
option java_outer_classname = "AccessKeyServiceProto";
import "google/protobuf/empty.proto";

option java_package = "io.netifi.proteus.broker.access";
option java_outer_classname = "AccessKeyInfo";
option java_multiple_files = true;

// Service that returns AuthInfo used by the router to login
service AccessKeyInfoService {
rpc AccessKeyInfoEvents (Empty) returns (stream AccessKeyInfo) {}
message AccessKey {
int64 key = 1;
}

message Empty {}
message AccessToken {
int64 key = 1;
bytes accessToken = 2;
string description = 3;
}

message AccessKeyInfo {
int64 key = 1;

bytes accessTokenHash = 2;

bytes accessTokenSalt = 3;

string accessKeyAlgo = 4;
string description = 5;
bool disabled = 6;
}

int64 account = 5;

enum Type {
SEED_NEXT = 0;
SEED_COMPLETE = 1;
ADD = 2;
REMOVE = 3;
}
Type type = 6;
service AccessKeyInfoService {
rpc AddAccessKey (AccessToken) returns (AccessKeyInfo) {}
rpc RemoveAccessKey (AccessKey) returns (AccessKeyInfo) {}
rpc DisableAccessKey (AccessKey) returns (AccessKeyInfo) {}
rpc EnableAccessKey (AccessKey) returns (AccessKeyInfo) {}
rpc GetAccessKey (AccessKey) returns (AccessKeyInfo) {}
rpc GetAccessKeys (google.protobuf.Empty) returns (stream AccessKeyInfo) {}
}

0 comments on commit 881d0b9

Please sign in to comment.