You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by "allinprogram (via GitHub)" <gi...@apache.org> on 2024/09/19 02:26:29 UTC

[I] Combine Answer with Logto. [incubator-answer]

allinprogram opened a new issue, #1108:
URL: https://github.com/apache/incubator-answer/issues/1108

   ## Describe the bug
   
   [Apache Answer](https://github.com/apache/incubator-answer) is an effort undergoing incubation at The Apache Software Foundation.
   I hope to use Logto as the user center of Answer and provide authorization for Answer.
   
   Logto provides OIDC, and Answer supports OAuth2.0.
   I understand that OIDC is a superset of OAuth2.0, but when I use it together, it return an error. I wonder if these two great tools can be used together.
   I have fully configured the information of Logto in Answer, so I can jump to the login page. After the login callback, this process returns invalid request information.
   
   ```log
   ERROR	controller/connector_controller.go:130	connector received failed, error info: code exchange failed: oauth2: cannot fetch token: 400 Bad Request
   Response: {"code":"oidc.invalid_request","message":"Request is invalid.","error":"invalid_request","error_description":"missing required parameter 'code'"}, response data is:
   ```
   
   ### To Reproduce
   
   Steps to reproduce the behavior:
   
   1. Open Logto and create a OIDC Application;
   2. Set Logto info into Answer Oauth2.0 plugin;
   3. Set [Answer callback uri](https://github.com/apache/incubator-answer-plugins/tree/main/connector-basic) into Logto;
   4. Start Login, input correct account info and click login.
   5. Wait callback, then log error info.
   
   ### Expected behavior
   
   Login Success.
   
   ### Screenshots
   
   Nan.
   
   ### Platform
   
   - Device: [iPhone 15 Pro]
   - OS: [ios]
   - Browser and version: [Safari]
   - Version: [v1.3.6]
   
   ### More
   Thank you for your efforts to make such a great tool.
   If you think this is not a bug of Answer, please give me some information to help me, and you can close this issue directly.
   If you are interested in this scenario, I can provide Logto instance and Answer instance for your investigation.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [incubator-answer]

Posted by "LinkinStars (via GitHub)" <gi...@apache.org>.
LinkinStars commented on issue #1108:
URL: https://github.com/apache/incubator-answer/issues/1108#issuecomment-2370313136

   > After communicating with the other party, the other party pointed out that the problem lies in the agreement support. Have you considered supporting OIDC in the near future?
   
   @AllinProgram You can submit an issue to the [plugin repository](https://github.com/apache/incubator-answer-plugins) and maybe some other can implement it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [answer]

Posted by "xiaoyijun (via GitHub)" <gi...@apache.org>.
xiaoyijun commented on issue #1108:
URL: https://github.com/apache/answer/issues/1108#issuecomment-2874944901

   Hi @AllinProgram , I just created an blog about this topic, hope it helps: [Logto in action: Integrate Apache Answer to launch a community for your users](https://blog.logto.io/logto-apache-answer).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [incubator-answer]

Posted by "allinprogram (via GitHub)" <gi...@apache.org>.
allinprogram commented on issue #1108:
URL: https://github.com/apache/incubator-answer/issues/1108#issuecomment-2368667154

   After communicating with the other party, the other party pointed out that the problem lies in the agreement support. Have you considered supporting OIDC in the near future?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [incubator-answer]

Posted by "allinprogram (via GitHub)" <gi...@apache.org>.
allinprogram commented on issue #1108:
URL: https://github.com/apache/incubator-answer/issues/1108#issuecomment-2359882599

   @LinkinStars Thank you for your reply.
   My current thinking direction is the same as what you described.🍻
   
   But I successfully configured it in NodeBB (only supporting OAuth2.0).😢
   
   Finally, Maybe I need a OIDC plugin in Answer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [incubator-answer]

Posted by "allinprogram (via GitHub)" <gi...@apache.org>.
allinprogram closed issue #1108: Combine Answer with Logto.
URL: https://github.com/apache/incubator-answer/issues/1108


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [incubator-answer]

Posted by "AllinProgram (via GitHub)" <gi...@apache.org>.
AllinProgram closed issue #1108: Combine Answer with Logto.
URL: https://github.com/apache/incubator-answer/issues/1108


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [incubator-answer]

Posted by "LinkinStars (via GitHub)" <gi...@apache.org>.
LinkinStars commented on issue #1108:
URL: https://github.com/apache/incubator-answer/issues/1108#issuecomment-2359872220

   @allinprogram Thanks for the feedback. In my opinion, there is a difference between OIDC and OAuth2. OAuth2 is called directly with a `code`, while OIDC needs to get an `Id Token` additionally, so it is most likely an incompatibility issue. Perhaps a separate OIDC plugin is needed to support this. Above is just my thoughts. Sorry, I don't have a logto environment to test on yet, maybe someone else can help with this. 🤔


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Combine Answer with Logto. [incubator-answer]

Posted by "AllinProgram (via GitHub)" <gi...@apache.org>.
AllinProgram commented on issue #1108:
URL: https://github.com/apache/incubator-answer/issues/1108#issuecomment-2370316864

   @LinkinStars I realized I should have submitted an issue there. Thanks for reminding me. I will close the issue now.
   
   Thank you for your patience.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org