Versions in this module Expand all Collapse all v1 v1.0.1-stable Sep 11, 2022 v1.0.0 Sep 10, 2022 Changes in this version + const APP_ID + const AUTHORIZATION + const AUTHORIZATION_CODE + const BEARER + const CACHE_CONTROL + const CONTENT + const CONTENT_TYPE + const ERROR + const ERROR_CONFIGURATION_ATTRIBUTES_NOT_FOUND + const ERROR_CONFIGURATION_CLIENT_ID_NOT_FOUND + const ERROR_CONFIGURATION_CLIENT_SECRET_NOT_FOUND + const ERROR_CONFIGURATION_CLIENT_SECURE_CERT_NOT_FOUND + const ERROR_CONFIGURATION_CLIENT_SECURE_CERT_PASSPHRASE_NOT_FOUND + const ERROR_CONFIGURATION_ENVIRONMENT_NOT_FOUND + const ERROR_CONFIGURATION_PERSON_URL_NOT_FOUND + const ERROR_CONFIGURATION_PROXY_PERSON_URL_NOT_FOUND + const ERROR_CONFIGURATION_PROXY_TOKEN_URL_NOT_FOUND + const ERROR_CONFIGURATION_PUBLIC_CERT_NOT_FOUND + const ERROR_CONFIGURATION_REDIRECT_URL_NOT_FOUND + const ERROR_CONFIGURATION_TOKEN_URL_NOT_FOUND + const ERROR_UNKNOWN_AUTH_LEVEL + const ERROR_UNKNOWN_NOT_INIT + const FAILED_TO_PARSE_RSA_PRIVATE_KEY + const HTTP_METHOD_GET + const HTTP_METHOD_POST + const INVALID_DATA_OR_SIGNATURE + const INVALID_TOKEN + const NONCE + const NO_CACHE + const OK + const PARAM_ATTRIBUTES + const PARAM_CLIENT_ID + const PARAM_CLIENT_SECRET + const PARAM_CODE + const PARAM_GRANT_TYPE + const PARAM_REDIRECT_URL + const PARAM_STATE + const PARAM_TXNNO + const PERSON_DATA_NOT_FOUND + const RS256 + const SIGNATURE_METHOD + const SINPASS_PRODUCTION_ENVIRONMENT + const SINPASS_SANDBOX_ENVIRONMENT + const SINPASS_TEST_ENVIRONMENT + const TIMESTAMP + const UINFIN_NOT_FOUND + const UNEXPECTED_STATUS_CODE + func AuthHeader(apiURL string, params ParamsSort, httpMethod string, contentType string, ...) (string, error) + func Decode(payload string) ([]byte, error) + func DecryptJWE(pemPrivaKey *rsa.PrivateKey, compactJWE string) (string, error) + func DecryptPrivateKey(secureCertLocation string, passphrase string) (*rsa.PrivateKey, error) + func GenerateAuthorizationHeader(apiURL string, params ParamsSort, httpMethod string, contentType string, ...) (string, error) + func GenerateBaseString(httpMethod string, apiURL string, appId string, params ParamsSort, ...) string + func GenerateRandomHex(count int) (string, error) + func GenerateSignature(privateKey *rsa.PrivateKey, baseString string) (string, error) + func MyInfoConnector(appConfig AppConfig) error + func SendRequest(request *http.Request) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + func VerifyJWS(publicCert string, accessToken string) ([]byte, error) + type AppConfig struct + ATTRIBUTES string + CLIENT_ID string + CLIENT_SECRET string + CLIENT_SECURE_CERT string + CLIENT_SECURE_CERT_PASSPHRASE string + ENVIRONMENT string + MYINFO_SIGNATURE_CERT_PUBIC_CERT string + PERSON_URL string + PROXY_PERSON_URL string + PROXY_TOKEN_URL string + PURPOSE string + REDIRECT_URL string + TOKEN_URL string + USE_PROXY string + func (appConfig AppConfig) CallPersonAPI(sub, accessToken, txnNo string, privateKey *rsa.PrivateKey) ([]byte, error) + func (appConfig AppConfig) CallTokenAPI(authCode string, privateKey *rsa.PrivateKey, state string) ([]byte, error) + func (appConfig AppConfig) CheckConfig() error + func (appConfig AppConfig) GetAccessToken(authCode string, state string) ([]byte, error) + func (appConfig AppConfig) GetMyInfoPersonData(authCode, state string) ([]byte, error) + func (appConfig AppConfig) GetPersonData(accessToken, txnNo string) ([]byte, error) + func (appConfig AppConfig) GetPersonDataWithKey(accessToken, txnNo string, privateKey *rsa.PrivateKey) ([]byte, error) + type Params struct + Name string + Value string + type ParamsSort []Params + func (slice ParamsSort) Len() int + func (slice ParamsSort) Less(i, j int) bool + func (slice ParamsSort) Swap(i, j int) v1.0.0-stable Sep 11, 2022