bankauth

io.token.proto.bankauth /external/src/main/proto/bankapi/bankauth.proto


syntax = "proto3";
package io.token.proto.bankauth;

import "google/api/annotations.proto";
import "banklink.proto";
import "extensions/field.proto";

message AuthCallbackRequest {
  string bank_id = 1;
  string code = 2;
  string state = 3 [(io.token.proto.extensions.field.redact) = true];
  string id_token = 4;
}

////////////////////////////////////////////////////////////////////////////////////////////////////
// A service responsible for handling of OAuth2 authorization callbacks.
//
service BankAuthService {
  rpc AuthCallback (AuthCallbackRequest) returns (io.token.proto.banklink.BankAuthorization) {
    option (google.api.http) = {
        get: "/auth/callback/{bank_id}?code={code}&state={state}&id_token={id_token}"
    };
  }
}