...

Source file src/edge-infra.dev/pkg/edge/okta/types.go

Documentation: edge-infra.dev/pkg/edge/okta

     1  package okta
     2  
     3  type IntrospectionResponse struct {
     4  	Active    bool     `json:"active"`
     5  	Scope     string   `json:"scope"`
     6  	Username  string   `json:"username"`
     7  	Expires   int      `json:"exp"`
     8  	IssuedAt  int      `json:"iat"`
     9  	Sub       string   `json:"sub"`
    10  	Aud       string   `json:"aud"`
    11  	Issuer    string   `json:"iss"`
    12  	Jti       string   `json:"jti"`
    13  	TokenType string   `json:"token_type"`
    14  	ClientID  string   `json:"client_id"`
    15  	UID       string   `json:"uid"`
    16  	Groups    []string `json:"groups"`
    17  	Type      string   `json:"type"`
    18  	Email     string   `json:"email"`
    19  }
    20  
    21  type UserInfo struct {
    22  	Sub               string `json:"sub"`
    23  	Name              string `json:"name"`
    24  	Locale            string `json:"locale"`
    25  	Email             string `json:"email"`
    26  	PreferredUsername string `json:"preferred_username"`
    27  	GivenName         string `json:"given_name"`
    28  	FamilyName        string `json:"family_name"`
    29  	ZoneInfo          string `json:"zone_info"`
    30  	EmailVerified     bool   `json:"email_verified"`
    31  }
    32  
    33  type RefreshResponse struct {
    34  	TokenType    string  `json:"token_type"`
    35  	ExpiresIn    float64 `json:"expires_in"`
    36  	AccessToken  string  `json:"access_token"`
    37  	Scope        string  `json:"scope"`
    38  	RefreshToken string  `json:"refresh_token"`
    39  	IDToken      string  `json:"id_token"`
    40  }
    41  

View as plain text