Package me.zhyd.oauth.config
Enum Class AuthDefaultSource
- All Implemented Interfaces:
Serializable,Comparable<AuthDefaultSource>,Constable,AuthSource
JustAuth内置的各api需要的url, 用枚举类分平台类型管理
- Since:
- 1.0
- Author:
- yadong.zhang (yadong.zhang0415(a)gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription爱发电 爱发电支付宝阿里云Amazon百度Coding,csdn钉钉扫码登录钉钉账号登录新版钉钉扫码登录抖音饿了么Facebook飞书平台,企业自建应用授权登录,原逻辑由 beacon 集成于 1.14.0 版,但最新的飞书 api 已修改,并且飞书平台一直为Deprecated状态giteeGithubGitlabGoogle 端点地址:https://accounts.google.com/.well-known/openid-configurationDeprecated.华为最新版本的 API京东酷家乐line领英美团小米微软微软中国(世纪互联)Okta,oschina 开源中国Pinterest程序员客栈QQQQ小程序授权登录人人网SlackStack Overflow淘宝Teambition今日头条Twitter企业微信二维码登录企业微信二维码第三方登录新版企业微信 Web 登录(扫码),参考 https://developer.work.weixin.qq.com/document/path/98152企业微信网页登录微信小程序授权登录微信公众平台微信开放平台新浪微博喜马拉雅 -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthDefaultSourceReturns the enum constant of this class with the specified name.static AuthDefaultSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface me.zhyd.oauth.config.AuthSource
accessToken, authorize, getName, getTargetClass, refresh, revoke, userInfo
-
Enum Constant Details
-
GITHUB
Github -
WEIBO
新浪微博 -
GITEE
gitee -
DINGTALK
钉钉扫码登录 -
DINGTALK_V2
新版钉钉扫码登录 -
DINGTALK_ACCOUNT
钉钉账号登录 -
BAIDU
百度 -
CSDN
csdn -
CODING
Coding,参考 https://help.coding.net/docs/project/open/oauth.html#%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83 中的说明, 新版的 coding API 地址需要传入用户团队名,这儿使用动态参数,方便在 request 中使用
-
OSCHINA
oschina 开源中国 -
ALIPAY
支付宝 -
QQ
QQ -
WECHAT_OPEN
微信开放平台 -
WECHAT_MP
微信公众平台 -
TAOBAO
淘宝 -
GOOGLE
Google 端点地址:https://accounts.google.com/.well-known/openid-configuration -
FACEBOOK
Facebook -
DOUYIN
抖音 -
LINKEDIN
领英 -
MICROSOFT
微软 -
MICROSOFT_CN
微软中国(世纪互联) -
MI
小米 -
TOUTIAO
今日头条 -
TEAMBITION
Teambition -
RENREN
人人网 -
PINTEREST
Pinterest -
STACK_OVERFLOW
Stack Overflow -
HUAWEI
Deprecated.华为当前方式未来可能被废弃,建议使用
HUAWEI_V3- Since:
- 1.10.0
-
HUAWEI_V3
华为最新版本的 API- Since:
- 1.16.7
-
WECHAT_ENTERPRISE
企业微信二维码登录- Since:
- 1.10.0
-
WECHAT_ENTERPRISE_V2
新版企业微信 Web 登录(扫码),参考 https://developer.work.weixin.qq.com/document/path/98152- Since:
- 1.16.7
-
WECHAT_ENTERPRISE_QRCODE_THIRD
企业微信二维码第三方登录 -
WECHAT_ENTERPRISE_WEB
企业微信网页登录 -
KUJIALE
酷家乐- Since:
- 1.11.0
-
GITLAB
Gitlab- Since:
- 1.11.0
-
MEITUAN
美团- Since:
- 1.12.0
-
ELEME
饿了么注:集成的是正式环境,非沙箱环境
- Since:
- 1.12.0
-
TWITTER
Twitter- Since:
- 1.13.0
-
FEISHU
飞书平台,企业自建应用授权登录,原逻辑由 beacon 集成于 1.14.0 版,但最新的飞书 api 已修改,并且飞书平台一直为Deprecated状态所以,最终修改该平台的实际发布版本为 1.15.9
- Since:
- 1.15.9
-
JD
京东- Since:
- 1.15.0
-
ALIYUN
阿里云 -
XMLY
喜马拉雅 -
AMAZON
Amazon- Since:
- 1.16.0
-
SLACK
Slack- Since:
- 1.16.0
-
LINE
line- Since:
- 1.16.0
-
OKTA
Okta,团队/组织的域名不同,此处通过配置动态组装
- Since:
- 1.16.0
-
PROGINN
程序员客栈- Since:
- 1.16.2
-
AFDIAN
爱发电 爱发电 -
APPLE
-
FIGMA
-
WECHAT_MINI_PROGRAM
微信小程序授权登录- Since:
- yudaocode
-
QQ_MINI_PROGRAM
QQ小程序授权登录
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-