Вопрос

How can I get a user's full name from Google when authenticating with yesod-auth's GoogleEmail backend? In my app, I'd like to require users enter as little redundant information as possible.

I'm not sure where to start. Will I need to modify yesod-auth?

Это было полезно?

Решение

Unfortunately, yesod-auth doesn't currently provide you with enough access to the underlying OpenID response to get that information. I'd be happy to accept a pull request to extend the API in that direction.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top