truqu / elm-oauth2

OAuth 2.0 client-side utils in Elm
MIT License
81 stars 29 forks source link

Problems with instagram oauth2 #8

Closed mrkaspa closed 6 years ago

mrkaspa commented 6 years ago

The url instagram returns does not have a token_type with bearer value it doesnot return this params, the url is this:

http://your-redirect-uri#access_token=ACCESS-TOKEN

KtorZ commented 6 years ago

Well, that's probably something to tell Instagram then :upside_down_face: This library merely implements the RFC-6749 and I am (once again) sad to see big companies not following a standard that is that well written :/

As explained in #3, I am not really willing to alter the library to cope with faulty implementation of different services; I hope you understand why. I am happy to fix bugs (if any) and add abstractions that would make things easier without altering the original essence.

Having said that, you can probably work-around that by adding yourself this parameter to the URL before giving it to elm-oauth2 for parsing ?