Coder Social home page Coder Social logo

Comments (19)

copoile avatar copoile commented on May 26, 2024

不通过是指获取token的时候获取不到吗?自定义验证码模式需要在redis设置一个验证码的,这个设置了吗?

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

redis中设置过了,我指的是自定义验证码生成token,这个不行

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

image
image

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

image
image

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

报什么呢?我刚在本地手机号验证码获取token是有报那个用户户disable,这个是因为忘设置用户enable为true了,然后我改了能获取token。

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

请求头加了吗

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

是不是你访问错服务了,确定访问的是认证中心的吗

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

请求头加了吗

为什么要加请求头啊?短信验证码授权

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

oath2是区分客户端的,请求头那要带上客户端请求头,怎么加具体看下对应的截图。不淡淡是自定义模式,如其他密码模式也都是得加客户端请求头的

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

客户端请求头:Authorization :Basic eWFvaHc6eWFvaHc=,这里的eWFvaHc6eWFvaHc=就是yaohw:yaohw经过base64加密了下,两者对应客户id和客户端密钥

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

我觉得不用加头哎,默认的几种模式我不加头都可以,我觉得实现可能有些问题

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

客户端请求头是必须的,oauth2区分客户端,参数传对了就没问题

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

默认四种模式,我直接访问/oauth/token接口都没有带头,可以拿到jwt

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

不可能吧,我都怀疑你弄的是不是这个项目了

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

你自己试试密码模式看看呢。哈哈

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

我试过,不行,想想就知道不能没有客户端请求头,token默认是根据clientId和username的组合key生成的token,你说你那能行,我实在是理解不了。

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

不是哦,其他模式里面都带有client和username

from springcloud-oauth2.

copoile avatar copoile commented on May 26, 2024

那你不是说不传clientId吗,不传怎么拿到client的

from springcloud-oauth2.

soochowcjf avatar soochowcjf commented on May 26, 2024

嗯,我是说那个basic我一直没有传,我明天再研究研究

from springcloud-oauth2.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.