client

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package client 提供认证相关 gRPC 客户端能力。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client 认证服务客户端。

提供认证相关功能,包括:

  • Token 验证和管理(VerifyToken、RefreshToken、RevokeToken、RevokeRefreshToken)
  • 服务间认证(IssueServiceToken)
  • JWKS 管理(GetJWKS)

func NewClient

func NewClient(authService authnv1.AuthServiceClient, jwksService authnv1.JWKSServiceClient) *Client

NewClient 创建认证服务客户端。

func (*Client) GetJWKS

GetJWKS 获取 JSON Web Key Set (JWKS)。

func (*Client) IssueServiceToken

IssueServiceToken 签发服务间认证 Token。

func (*Client) JWKSRaw

func (c *Client) JWKSRaw() authnv1.JWKSServiceClient

JWKSRaw 返回原始 JWKS 服务 gRPC 客户端。

func (*Client) Raw

func (c *Client) Raw() authnv1.AuthServiceClient

Raw 返回原始认证服务 gRPC 客户端。

func (*Client) RefreshToken

RefreshToken 使用 Refresh Token 刷新获取新的 Access Token。

func (*Client) RegisterOperationAccount

RegisterOperationAccount 创建运营后台账号,并按需创建用户、账户和密码凭据。

func (*Client) RevokeRefreshToken

RevokeRefreshToken 撤销 Refresh Token。

func (*Client) RevokeToken

RevokeToken 撤销 Access Token。

func (*Client) VerifyToken

VerifyToken 在线验证 Access Token。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL