Skip to main content

auth.proto

path mgmt/v1alpha1/auth.proto

package mgmt.v1alpha1


Messages

AccessToken

A decoded representation of an Access token from the backing auth server

NameTypeDescription
access_tokenstring
refresh_tokenoptional string
expires_inint64
scopestring
id_tokenoptional string
token_typestring

GetAuthStatusRequest

NameTypeDescription

GetAuthStatusResponse

NameTypeDescription
is_enabledboolWhether or not the server has authentication enabled. This tells the client if it is expected to send access tokens.

GetAuthorizeUrlRequest

NameTypeDescription
statestringThe state that's generated by the client that is passed along to prevent tampering
redirect_uristringThe redirect uri that the client will be redirected back to during the auth request
scopestringThe scopes the client is requesting as a part of the oauth login request

GetAuthorizeUrlResponse

NameTypeDescription
urlstringThe generated url that is the client will be redirected to during the Oauth flow

GetCliIssuerRequest

NameTypeDescription

GetCliIssuerResponse

NameTypeDescription
issuer_urlstringThe backing authentication issuer url
audiencestringThe audience that will be used in the access token. This corresponds to the "aud" claim

LoginCliRequest

NameTypeDescription
codestringThe oauth code
redirect_uristringThe oauth redirect uri that the client uses during the oauth request

LoginCliResponse

NameTypeDescription
access_tokenAccessTokenThe access token that is returned on successful login

Services

AuthService

Service that handles generic Authentication for Neosync Today this is mostly used by the CLI to receive authentication information

LoginCli

MethodLoginCli
RequestLoginCliRequest
ResponseLoginCliResponse
DescriptionUsed by the CLI to login to Neosync with OAuth.

GetCliIssuer

MethodGetCliIssuer
RequestGetCliIssuerRequest
ResponseGetCliIssuerResponse
DescriptionUsed by the CLI to retrieve Auth Issuer information

GetAuthorizeUrl

MethodGetAuthorizeUrl
RequestGetAuthorizeUrlRequest
ResponseGetAuthorizeUrlResponse
DescriptionUsed by the CLI to retrieve an Authorize URL for use with OAuth login.

GetAuthStatus

MethodGetAuthStatus
RequestGetAuthStatusRequest
ResponseGetAuthStatusResponse
DescriptionReturns the auth status of the API server. Whether or not the backend has authentication enabled. This is used by clients to make decisions on whether or not they should send access tokens to the API.