com.github.casside.cas.support.qywx.QyWxCodeOnceHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-x-support-clients Show documentation
Show all versions of cas-x-support-clients Show documentation
delegate authn plugins for cas server
The newest version!
package com.github.casside.cas.support.qywx;
/**
* tnd
*
* 企业微信非标准oauth协议,code只能单独维护一下了
*
* 注意:code是一次性的
*/
public class QyWxCodeOnceHolder {
private static ThreadLocal codes = new ThreadLocal<>();
public static void set(String code) {
codes.set(code);
}
/**
* return and remove
*
* @return code
*/
public static String release() {
return codes.get();
}
}