oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

OAuth 2.0 server library for the Go programming language.

Results 111 oauth2 issues
Sort by recently updated
recently updated
newest added

# What I expect: 1. Getting **access_token** (expired in 2 hours) & **refresh_token** (expired in 3 hours) by `/api/oauth?grant_type=client_credentials` 2. **After** access_token expires And **Before** refresh_token expires, refresh them by...

If the requested redirect_url is http://localhost/#/login, the redirected url will become: http://localhost/?code=M2VIZWI4YTGTNJDJZI0ZOGJILWIYN2QTMDJJNGEWMWRINWZH#/login but this is incorrect The correct one should be:http://localhost/#/login?code=M2VIZWI4YTGTNJDJZI0ZOGJILWIYN2QTMDJJNGEWMWRINWZH

Adds a support to automatically hash client secrets before storing provided that the underlying store implements new SavingClientStore interface. Client store wrapper supporting hashing returns client info wrapped into structure...

您好,看了你们的oauth2开源项目,请问可以帮忙改一套SSO登陆支持是OAUTH2.0授权码模式吗 有偿改动,我的联系方式微信:18515473953

Removes padding so the client example can be used against oauth servers that require padding to be removed. Fixes: https://github.com/go-oauth2/oauth2/issues/275

Yesterday, I submitted a PR and I struggled to make a succinct PR. Although I was editing only a single line in a single file, my editor automatically re-wrote the...

A small bug in your example client -- the PKCE challenge is not correct. I discovered this bug while I was testing an authentication service, and I used the example...

``` type Config struct { ForcePKCE bool } ``` the value of `ForcePKCE` is `false` by default and is checked in two places whether `true` or not. Is there any...

This pull request introduces several improvements to the OAuth2 validation logic to enhance code clarity, maintainability, and error handling: 1. Request Method Validation: - Refactored request method validation to encapsulate...