Skip to content

Commit

Permalink
Merge pull request #42 from valorem-labs-inc/megsdevs/val-1782-read-m…
Browse files Browse the repository at this point in the history
…ethods-for-authorization

geofence check endpoint
  • Loading branch information
0xAlcibiades authored Dec 11, 2023
2 parents ab2a5de + dbd282b commit 5471913
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proto/valorem/trade/v1/auth.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

import "types.proto";
import "google/protobuf/wrappers.proto";

package valorem.trade.v1;

Expand All @@ -17,6 +18,9 @@ service Auth {
// Used to check if a given connection is authenticated, returns the address which is authenticated for a nonce cookie
rpc Authenticate (Empty) returns (H160);

// Used to check if a given connection is geofenced. If access is restricted, returns true, otherwise false.
rpc Geofenced (Empty) returns (google.protobuf.BoolValue);

// Returns the SIWE Session for the request's sessionId
rpc Session (Empty) returns (SiweSession);

Expand All @@ -40,4 +44,4 @@ message VerifyText {
message SiweSession {
H160 address = 1;
H256 chain_id = 2;
}
}

0 comments on commit 5471913

Please sign in to comment.