Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat( add OAuth2 support ) #1533

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 31, 2024

  1. Added basic OAuth2 support

      moved oauth2.go and oauth2_test.go to applications.go and
        applications_test.go
      added basic OAuth2 endpoints to endpoints.go
      added util functions for creating 'Basic' token from client id
        and secret to util.go
      added util functions for prefixing 'Bearer' and 'Bot' tokens to
        util.go
      added methods to check token type on Sessions in structs.go
      added wrong token type errors to restapi.go
      changed RequestWithBucketID to use x-form-urlencoded encoding
        when given a url.Values data object to deal with discord's
        pendantic OAuth2 spec adherence
      created oauth2.go with basic OAuth2 types
      added ability to preform OAuth2 operation with a Session
        created from a 'Basic' token using client id and secret
      added ability to get OAuth2 authorization information for
        Session's created with 'Bearer' and 'Bot' tokens
      added godoc comments for above
      created a OAuth2 demo server in examples
    HarbingerNight committed May 31, 2024
    Configuration menu
    Copy the full SHA
    09d6bbd View commit details
    Browse the repository at this point in the history