mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-05 10:51:41 +00:00
41 lines
766 B
Protocol Buffer
41 lines
766 B
Protocol Buffer
syntax = "proto3";
|
|||
|
|
|
||
|
|
package hway.v1;
|
||
|
|
|
||
|
|
option go_package = "github.com/onsonr/sonr/pkg/hway/types";
|
||
|
|
|
||
|
|
service Highway {
|
||
|
|
rpc GetJWKS(GetJWKSRequest) returns (GetJWKSResponse);
|
||
|
|
rpc GetToken(GetTokenRequest) returns (GetTokenResponse);
|
||
|
|
rpc GrantAuthorization(GrantAuthorizationRequest) returns (GrantAuthorizationResponse);
|
||
|
|
}
|
||
|
|
|
||
|
|
message GetJWKSRequest {}
|
||
|
|
|
||
|
|
message GetJWKSResponse {
|
||
|
|
string jwks = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message GetTokenRequest {
|
||
|
|
string subject = 1;
|
||
|
|
string origin = 2;
|
||
|
|
string key = 3;
|
||
|
|
string asset = 4;
|
||
|
|
}
|
||
|
|
|
||
|
|
message GetTokenResponse {
|
||
|
|
string token = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message GrantAuthorizationRequest {
|
||
|
|
string subject = 1;
|
||
|
|
string origin = 2;
|
||
|
|
string key = 3;
|
||
|
|
string asset = 4;
|
||
|
|
string assertion = 5;
|
||
|
|
}
|
||
|
|
|
||
|
|
message GrantAuthorizationResponse {
|
||
|
|
string token = 1;
|
||
|
|
}
|