+type Jwttoken struct {
+ Access_token string
+ Expires_in int
+ Refresh_expires_in int
+ Refresh_token string
+ Token_type string
+ Not_before_policy int
+ Session_state string
+ Scope string
+}
+
+type RealmRepresentation struct {
+ Id string `json:"id,omitempty"`
+ Realm string `json:"realm,omitempty"`
+ DisplayName string `json:"displayName,omitempty"`
+ Enabled bool `json:"enabled"`
+}
+
+type Client struct {
+ ClientID string `json:"clientId,omitempty"`
+ Enabled bool `json:"enabled,omitempty"`
+ DirectAccessGrantsEnabled bool `json:"directAccessGrantsEnabled,omitempty"`
+ BearerOnly bool `json:"bearerOnly,omitempty"`
+ PublicClient bool `json:"publicClient,omitempty"`
+ ServiceAccountsEnabled bool `json:"serviceAccountsEnabled,omitempty"`
+ ClientAuthenticatorType string `json:"clientAuthenticatorType,omitempty"`
+ DefaultClientScopes []string `json:"defaultClientScopes,omitempty"`
+ Attributes map[string]string `json:"attributes,omitempty"`
+ AuthenticationFlowBindingOverrides map[string]string `json:"authenticationFlowBindingOverrides,omitempty"`
+}
+
+type Role struct {
+ Name string `json:"name,omitempty"`
+}
+
+type User struct {
+ ID string `json:"id,omitempty"`
+ Username string `json:"username,omitempty"`
+ Email string `json:"email,omitempty"`
+ Enabled bool `json:"enabled"`
+}
+
+type ProtocolMapperRepresentation struct {
+ Name string `json:"name,omitempty"`
+ Protocol string `json:"protocol,omitempty"`
+ ProtocolMapper string `json:"protocolMapper,omitempty"`
+ Config map[string]string `json:"config,omitempty"`
+}
+
+type RoleRepresentation struct {
+ ID string `json:"id,omitempty"`
+ Name string `json:"name,omitempty"`
+ Composite bool `json:"composite"`
+ ClientRole bool `json:"clientRole"`
+}
+
+type AuthenticationFlowRepresentation struct {
+ Alias string `json:"alias,omitempty"`
+ Description string `json:"description,omitempty"`
+ ProviderId string `json:"providerId,omitempty"`
+ TopLevel bool `json:"topLevel"`
+ BuiltIn bool `json:"builtIn"`
+ AthenticationExecutions []string `json:"authenticationExecutions,omitempty"`
+}
+
+type Execution struct {
+ Provider string `json:"provider,omitempty"`
+}
+
+type AuthenticatorConfigRepresentation struct {
+ Alias string `json:"alias,omitempty"`
+ Config map[string]string `json:"config,omitempty"`
+}
+
+var keycloakUrl string = "http://keycloak:8080"
+var token Jwttoken
+var flowAlias string = "x509 direct grant"
+