Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
237 lines
7.3 KiB
Go
237 lines
7.3 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: oidc/v1/state.proto
|
|
|
|
package oidcv1
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type FlowKind int32
|
|
|
|
const (
|
|
FlowKind_FLOW_KIND_UNSPECIFIED FlowKind = 0
|
|
FlowKind_FLOW_KIND_LOGIN FlowKind = 1
|
|
FlowKind_FLOW_KIND_REGISTRATION FlowKind = 2
|
|
FlowKind_FLOW_KIND_SETTINGS FlowKind = 3
|
|
)
|
|
|
|
// Enum value maps for FlowKind.
|
|
var (
|
|
FlowKind_name = map[int32]string{
|
|
0: "FLOW_KIND_UNSPECIFIED",
|
|
1: "FLOW_KIND_LOGIN",
|
|
2: "FLOW_KIND_REGISTRATION",
|
|
3: "FLOW_KIND_SETTINGS",
|
|
}
|
|
FlowKind_value = map[string]int32{
|
|
"FLOW_KIND_UNSPECIFIED": 0,
|
|
"FLOW_KIND_LOGIN": 1,
|
|
"FLOW_KIND_REGISTRATION": 2,
|
|
"FLOW_KIND_SETTINGS": 3,
|
|
}
|
|
)
|
|
|
|
func (x FlowKind) Enum() *FlowKind {
|
|
p := new(FlowKind)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x FlowKind) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (FlowKind) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_oidc_v1_state_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (FlowKind) Type() protoreflect.EnumType {
|
|
return &file_oidc_v1_state_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x FlowKind) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use FlowKind.Descriptor instead.
|
|
func (FlowKind) EnumDescriptor() ([]byte, []int) {
|
|
return file_oidc_v1_state_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type State struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FlowId []byte `protobuf:"bytes,1,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
|
SessionTokenExchangeCodeSha512 []byte `protobuf:"bytes,2,opt,name=session_token_exchange_code_sha512,json=sessionTokenExchangeCodeSha512,proto3" json:"session_token_exchange_code_sha512,omitempty"`
|
|
ProviderId string `protobuf:"bytes,3,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
|
|
PkceVerifier string `protobuf:"bytes,4,opt,name=pkce_verifier,json=pkceVerifier,proto3" json:"pkce_verifier,omitempty"`
|
|
FlowKind FlowKind `protobuf:"varint,5,opt,name=flow_kind,json=flowKind,proto3,enum=oidc.v1.FlowKind" json:"flow_kind,omitempty"`
|
|
// request_base_url is the scheme://host[:port] the browser used at flow
|
|
// init. It is captured so the OIDC/SAML callback can be redirected back
|
|
// onto the developer proxy / custom domain the user started on. Empty
|
|
// when there is nothing to rewrite.
|
|
RequestBaseUrl string `protobuf:"bytes,6,opt,name=request_base_url,json=requestBaseUrl,proto3" json:"request_base_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *State) Reset() {
|
|
*x = State{}
|
|
mi := &file_oidc_v1_state_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *State) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*State) ProtoMessage() {}
|
|
|
|
func (x *State) ProtoReflect() protoreflect.Message {
|
|
mi := &file_oidc_v1_state_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use State.ProtoReflect.Descriptor instead.
|
|
func (*State) Descriptor() ([]byte, []int) {
|
|
return file_oidc_v1_state_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *State) GetFlowId() []byte {
|
|
if x != nil {
|
|
return x.FlowId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *State) GetSessionTokenExchangeCodeSha512() []byte {
|
|
if x != nil {
|
|
return x.SessionTokenExchangeCodeSha512
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *State) GetProviderId() string {
|
|
if x != nil {
|
|
return x.ProviderId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *State) GetPkceVerifier() string {
|
|
if x != nil {
|
|
return x.PkceVerifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *State) GetFlowKind() FlowKind {
|
|
if x != nil {
|
|
return x.FlowKind
|
|
}
|
|
return FlowKind_FLOW_KIND_UNSPECIFIED
|
|
}
|
|
|
|
func (x *State) GetRequestBaseUrl() string {
|
|
if x != nil {
|
|
return x.RequestBaseUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_oidc_v1_state_proto protoreflect.FileDescriptor
|
|
|
|
const file_oidc_v1_state_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x13oidc/v1/state.proto\x12\aoidc.v1\"\x8c\x02\n" +
|
|
"\x05State\x12\x17\n" +
|
|
"\aflow_id\x18\x01 \x01(\fR\x06flowId\x12J\n" +
|
|
"\"session_token_exchange_code_sha512\x18\x02 \x01(\fR\x1esessionTokenExchangeCodeSha512\x12\x1f\n" +
|
|
"\vprovider_id\x18\x03 \x01(\tR\n" +
|
|
"providerId\x12#\n" +
|
|
"\rpkce_verifier\x18\x04 \x01(\tR\fpkceVerifier\x12.\n" +
|
|
"\tflow_kind\x18\x05 \x01(\x0e2\x11.oidc.v1.FlowKindR\bflowKind\x12(\n" +
|
|
"\x10request_base_url\x18\x06 \x01(\tR\x0erequestBaseUrl*n\n" +
|
|
"\bFlowKind\x12\x19\n" +
|
|
"\x15FLOW_KIND_UNSPECIFIED\x10\x00\x12\x13\n" +
|
|
"\x0fFLOW_KIND_LOGIN\x10\x01\x12\x1a\n" +
|
|
"\x16FLOW_KIND_REGISTRATION\x10\x02\x12\x16\n" +
|
|
"\x12FLOW_KIND_SETTINGS\x10\x03B|\n" +
|
|
"\vcom.oidc.v1B\n" +
|
|
"StateProtoP\x01Z$github.com/ory/kratos/oidc/v1;oidcv1\xa2\x02\x03OXX\xaa\x02\aOidc.V1\xca\x02\aOidc\\V1\xe2\x02\x13Oidc\\V1\\GPBMetadata\xea\x02\bOidc::V1b\x06proto3"
|
|
|
|
var (
|
|
file_oidc_v1_state_proto_rawDescOnce sync.Once
|
|
file_oidc_v1_state_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_oidc_v1_state_proto_rawDescGZIP() []byte {
|
|
file_oidc_v1_state_proto_rawDescOnce.Do(func() {
|
|
file_oidc_v1_state_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_oidc_v1_state_proto_rawDesc), len(file_oidc_v1_state_proto_rawDesc)))
|
|
})
|
|
return file_oidc_v1_state_proto_rawDescData
|
|
}
|
|
|
|
var file_oidc_v1_state_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_oidc_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_oidc_v1_state_proto_goTypes = []any{
|
|
(FlowKind)(0), // 0: oidc.v1.FlowKind
|
|
(*State)(nil), // 1: oidc.v1.State
|
|
}
|
|
var file_oidc_v1_state_proto_depIdxs = []int32{
|
|
0, // 0: oidc.v1.State.flow_kind:type_name -> oidc.v1.FlowKind
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_oidc_v1_state_proto_init() }
|
|
func file_oidc_v1_state_proto_init() {
|
|
if File_oidc_v1_state_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_oidc_v1_state_proto_rawDesc), len(file_oidc_v1_state_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_oidc_v1_state_proto_goTypes,
|
|
DependencyIndexes: file_oidc_v1_state_proto_depIdxs,
|
|
EnumInfos: file_oidc_v1_state_proto_enumTypes,
|
|
MessageInfos: file_oidc_v1_state_proto_msgTypes,
|
|
}.Build()
|
|
File_oidc_v1_state_proto = out.File
|
|
file_oidc_v1_state_proto_goTypes = nil
|
|
file_oidc_v1_state_proto_depIdxs = nil
|
|
}
|