程序包 io.github.mangocrisp.spring.taybct.auth.controller


package io.github.mangocrisp.spring.taybct.auth.controller
  • 说明
    验证码请求类
    秘钥相关
    用于获取公钥,加/解密密文等操作,主要用于做加密登录操作,因为客户端 id 和 密钥这些东西,默认是通过 base64 加密传输,这样是很不安全的,所以可以多做一层非对称加密来解决这种安全问题
    如果需要使用授权码模式,登录页面默认为 base-login,如果需要自定义登录页面, 浏览器访问: http://[ip]/api/auth/oauth/authorize?response_type=code&client_id=[client_id]&scope=[scope]&redirect_uri=[redirect_uri] 鉴权服务器会跳转到登录页面,登录成功后,会返回一个授权码,然后跳转到 redirect_uri 中指定的页面,