Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geofence check endpoint #42

Merged
merged 4 commits into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
Loading