github.com/uvalib/orcid-access-ws@v0.0.0-20250612130209-7d062dbabf9d/orcidaccessws/orcid/auth_protocol.go (about)

     1  package orcid
     2  
     3  //
     4  // oauth request/response structures
     5  //
     6  
     7  type oauthRequest struct {
     8  	ClientID     string `json:"client_id,omitempty"`
     9  	ClientSecret string `json:"client_secret,omitempty"`
    10  	Scope        string `json:"scope,omitempty"`
    11  	GrantType    string `json:"grant_type,omitempty"`
    12  }
    13  
    14  type oauthResponse struct {
    15  	AccessToken  string `json:"access_token,omitempty"`
    16  	RefreshToken string `json:"refresh_token,omitempty"`
    17  	TokenType    string `json:"token_type,omitempty"`
    18  	Scope        string `json:"scope,omitempty"`
    19  }
    20  
    21  //
    22  // end of file
    23  //