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

Doesn't compile with newest version of hoauth2>=1.11 #17

Open
lehins opened this issue Feb 2, 2020 · 0 comments
Open

Doesn't compile with newest version of hoauth2>=1.11 #17

lehins opened this issue Feb 2, 2020 · 0 comments

Comments

@lehins
Copy link
Contributor

lehins commented Feb 2, 2020

OAuth2.oauthClientSecret in hoauth2 is now Maybe Text vs just Text in prior versions

/home/lehins/fpco/wai-middleware-auth/src/Network/Wai/Middleware/Auth/OAuth2.hs:102:33: error:
    • Couldn't match expected type ‘Maybe T.Text’
                  with actual type ‘T.Text’
    • In the ‘oauthClientSecret’ field of a record
      In the expression:             
        OA2.OAuth2                   
          {oauthClientId = getClientId oa2ClientId,
           oauthClientSecret = getClientSecret oa2ClientSecret,
           oauthOAuthorizeEndpoint = authEndpointURI,
           oauthAccessTokenEndpoint = accessTokenEndpointURI,
           oauthCallback = Just callbackURI}
      In an equation for ‘oauth2’:   
          oauth2                     
            = OA2.OAuth2             
                {oauthClientId = getClientId oa2ClientId,
                 oauthClientSecret = getClientSecret oa2ClientSecret,
                 oauthOAuthorizeEndpoint = authEndpointURI,
                 oauthAccessTokenEndpoint = accessTokenEndpointURI,
                 oauthCallback = Just callbackURI}
    |                                
102 |           , oauthClientSecret = getClientSecret oa2ClientSecret
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant