truqu / elm-oauth2

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

Make `authorize` more lenient #6

Closed KtorZ closed 6 years ago

KtorZ commented 6 years ago

Echoing #5 and #4, it would come in handy to be able to specify some custom parameters for the query of the authorize function. This could be achieved via a:

authorizeWithOpts :: (QueryString -> QueryString) -> Authorize -> Command msg

There's also probably some work that can be done to leverage the parse functions from the Implicit and AuthorizationCode modules.

roman-mkh commented 6 years ago

Hello @KtorZ I'm missing such advanced function too, Our corp auth server requires additional non standard query parameters for the implicit grant type. I think you mix up the signature with haskell :smile:. IMHO it should look like authorizeWithOpts : (QueryString -> QueryString) -> Authorization -> Cmd msg

KtorZ commented 6 years ago

Solved in 4.0.0