diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2b46162..adc7433 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,10 +2,8 @@ name: test on: push: branches: - - master + - main pull_request: - branches: - - master jobs: build: name: go @@ -13,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - go: ['1.17', '1.18'] + go: ['1.17', '1.18', '1.19'] steps: - name: setup uses: actions/setup-go@v3 diff --git a/README.md b/README.md index 21d1754..8b9775f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# OAuth1 [![Build Status](https://github.com/dghubble/oauth1/workflows/test/badge.svg)](https://github.com/dghubble/oauth1/actions?query=workflow%3Atest+branch%3Amaster) [![Coverage](https://gocover.io/_badge/github.com/dghubble/oauth1)](https://gocover.io/github.com/dghubble/oauth1) [![GoDoc](http://godoc.org/github.com/dghubble/oauth1?status.svg)](http://godoc.org/github.com/dghubble/oauth1) +# OAuth1 [![GoDoc](https://pkg.go.dev/badge/github.com/dghubble/oauth1.svg)](https://pkg.go.dev/github.com/dghubble/oauth1) [![Workflow](https://github.com/dghubble/oauth1/actions/workflows/test.yaml/badge.svg)](https://github.com/dghubble/oauth1/actions/workflows/test.yaml?query=branch%3Amain) [![Sponsors](https://img.shields.io/github/sponsors/dghubble?logo=github)](https://github.com/sponsors/dghubble) [![Twitter](https://img.shields.io/badge/twitter-follow-1da1f2?logo=twitter)](https://twitter.com/dghubble) diff --git a/doc.go b/doc.go index 0fc0978..27b437c 100644 --- a/doc.go +++ b/doc.go @@ -8,7 +8,7 @@ authorized requests on behalf of a user (e.g. API calls). It takes design cues from golang.org/x/oauth2, providing an http.Client which handles request signing and authorization. -Usage +# Usage Package oauth1 implements the OAuth1 authorization flow and provides an http.Client which can sign and authorize OAuth1 requests. @@ -23,7 +23,7 @@ clients. * https://github.com/dghubble/go-digits * https://github.com/benfb/go-tumblr -Authorization Flow +# Authorization Flow Perform the OAuth 1 authorization flow to ask a user to grant an application access to his/her resources via an access token. @@ -69,7 +69,7 @@ to make requests on behalf of the user. Check the examples to see this authorization flow in action from the command line, with Twitter PIN-based login and Tumblr login. -Authorized Requests +# Authorized Requests Use an access Token to make authorized requests on behalf of a user.