在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ueberauth/ueberauth_google开源软件地址(OpenSource Url):https://github.com/ueberauth/ueberauth_google开源编程语言(OpenSource Language):Elixir 100.0%开源软件介绍(OpenSource Introduction):Überauth Google
Installation
For an example implementation see the Überauth Example application. CallingDepending on the configured url you can initiate the request through:
Or with options:
By default the requested scope is "email". Scope can be configured either explicitly as a config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [default_scope: "email profile plus.me"]}
] You can also pass options such as the config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [hd: "example.com", prompt: "select_account", access_type: "offline", include_granted_scopes: true]}
] In some cases, it may be necessary to update the user info endpoint, such as when deploying to countries that block access to the default endpoint. config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [userinfo_endpoint: "https://www.googleapis.cn/oauth2/v3/userinfo"]}
] This may also be set via runtime configuration by passing a 2 or 3 argument tuple. To use this feature, the first argument must be the atom config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [
userinfo_endpoint: {:system, "GOOGLE_USERINFO_ENDPOINT", "https://www.googleapis.cn/oauth2/v3/userinfo"}
]}
] To guard against client-side request modification, it's important to still check the domain in Copyright and LicenseCopyright (c) 2015 Sean Callan Released under the MIT License, which can be found in the repository in LICENSE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论