@@ -3,6 +3,7 @@ package anysdk
3
3
import (
4
4
"encoding/base64"
5
5
"fmt"
6
+ "net/url"
6
7
7
8
"github.com/go-openapi/jsonpointer"
8
9
)
@@ -31,6 +32,14 @@ type AuthDTO interface {
31
32
GetLocation () string
32
33
GetSubject () string
33
34
GetName () string
35
+ GetClientID () string
36
+ GetClientIDEnvVar () string
37
+ GetClientSecret () string
38
+ GetClientSecretEnvVar () string
39
+ GetTokenURL () string
40
+ GetGrantType () string
41
+ GetValues () url.Values
42
+ GetAuthStyle () int
34
43
}
35
44
36
45
type standardAuthDTO struct {
@@ -49,11 +58,51 @@ type standardAuthDTO struct {
49
58
Password string `json:"password" yaml:"password"`
50
59
EnvVarAPIKeyStr string `json:"api_key_var" yaml:"api_key_var"`
51
60
EnvVarAPISecretStr string `json:"api_secret_var" yaml:"api_secret_var"`
61
+ TokenURL string `json:"token_url" yaml:"token_url"`
62
+ GrantType string `json:"grant_type" yaml:"grant_type"`
63
+ ClientID string `json:"client_id" yaml:"client_id"`
64
+ ClientSecret string `json:"client_secret" yaml:"client_secret"`
65
+ ClientIDEnvVar string `json:"client_id_env_var" yaml:"client_id_env_var"`
66
+ ClientSecretEnvVar string `json:"client_secret_env_var" yaml:"client_secret_env_var"`
52
67
EnvVarUsername string `json:"username_var" yaml:"username_var"`
53
68
EnvVarPassword string `json:"password_var" yaml:"password_var"`
54
69
Successor * standardAuthDTO `json:"successor,omitempty" yaml:"successor,omitempty"`
55
70
Subject string `json:"sub" yaml:"sub"`
71
+ Values url.Values `json:"values,omitempty" yaml:"values,omitempty"`
56
72
Location string `json:"location,omitempty" yaml:"location,omitempty"`
73
+ AuthStyle int `json:"auth_style" yaml:"auth_style"`
74
+ }
75
+
76
+ func (qt standardAuthDTO ) GetValues () url.Values {
77
+ return qt .Values
78
+ }
79
+
80
+ func (qt standardAuthDTO ) GetAuthStyle () int {
81
+ return qt .AuthStyle
82
+ }
83
+
84
+ func (qt standardAuthDTO ) GetClientID () string {
85
+ return qt .ClientID
86
+ }
87
+
88
+ func (qt standardAuthDTO ) GetClientIDEnvVar () string {
89
+ return qt .ClientIDEnvVar
90
+ }
91
+
92
+ func (qt standardAuthDTO ) GetClientSecret () string {
93
+ return qt .ClientSecret
94
+ }
95
+
96
+ func (qt standardAuthDTO ) GetClientSecretEnvVar () string {
97
+ return qt .ClientSecretEnvVar
98
+ }
99
+
100
+ func (qt standardAuthDTO ) GetTokenURL () string {
101
+ return qt .TokenURL
102
+ }
103
+
104
+ func (qt standardAuthDTO ) GetGrantType () string {
105
+ return qt .GrantType
57
106
}
58
107
59
108
func (qt standardAuthDTO ) GetName () string {
0 commit comments