oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

An Elixir OAuth 2.0 Client Library

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

Hi, I was just wondering if PKCE flow belongs to the scope of this library? If so, is pull request welcomed? (might do it when I have free time) ref:...

### Abstract There are several types of Client authentication defined for use when making a request to the Token Endpoint in OAuth 2.0. These are named "client_secret_basic", "client_secret_post", "client_secret_jwt", etc....

stale:discard

Thanks for the amazing library! I came across a bug and wanted to report: The OAuth2 library [defaults to](https://github.com/scrogson/oauth2/blob/b5cdbdb475a2ffebd0f48e3289f64cfcdd67dfb9/lib/oauth2/util.ex#L11-L21) `application/json` response type when no `content-type` header is present. Since the...

Currently the `AccessToken.new/1` method does not use the `expires_at` param if it is present in the given map, and only uses `expires_in` or `expires`. It is common to store access...

stale:discard

Users can supply their own HTTP Client module to be used by OAuth2.Request: ```elixir config :oauth2, http_client: MyCustomClient ``` The default is `OAuth2.HTTPClient.Hackney` which conforms to the `OAuth2.HTTPClient` behaviour. I...

We faced to a problem when the OAuth2.AccessToken object is not parsing ```elixir client = OAuth2.Client.new([ client_id: _client_id, client_secret: _client_secret, redirect_uri: _redirect_uri, site: "https://accounts.google.com", authorize_url: "/o/oauth2/v2/auth", token_url: "/o/oauth2/token" ]) OAuth2.Client.get_token!(client,...

```elixir OAuth2.Client.new([ strategy: OAuth2.Strategy.AuthCode, client_id: "my_client_id", client_secret: "my_client_secret", site: "https://accounts.google.com", authorize_url: "/o/oauth2/auth", redirect_uri: "http://localhost:4000/auth/google/callback" ]) |> OAuth2.Client.get_token!(code: code) ``` Responds with: ```elixir {:error, %OAuth2.Response{ body: "Error 400 (Bad Request)!!1*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{color:#222;text-align:unset;margin:7%...

I need to communicate with a weird OAuth2 server that uses Client Credentials, but only accepts GET to retrieve a token, not POST. I found the `token_method` parameter in the...

The currently used version of hackney (`1.13`) is no more compatible with OTP 23. According to the release notes, sslv3 was removed in OTP 23 and this causes an error...

Updating to `v2.0.0` broke a few OAuth2 based integrations in my application. Since then I've been going over the changelog, commit history and the related issues to figure out what...