Skip to content

libercapital/oauth-sdk

Repository files navigation

Welcome to OAuth SDK 👋

SDK client to connect into authenticator OAuth

Install

go github.com/libercapital/oauth-sdk

Usage

client, err := oauthsdk.NewClient(
Config{
  URL:          "http://localhost:1000",
  ClientID:     "CLIENT_ID",
  ClientSecret: "CLIENT_SECRET",
  GrantType:    "GRANT_TYPE",
  Audience:     "AUDIENCE",
  RedactKeys:   []string{"scope"},
  ExpirationMargin:   5,
  CertData: &CertData{
    ClientCrt:    `xpto`,
    ClientCrtKey: `xpto`,
    },
  },
)

client.GetAccessToken(context.Background())

Author

👤 Giuseppe Menti

Contributors

👤 Eduardo Mello

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published