Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hi there. Is Casdoor suitable for service-to-service auth? I would like to authenticate my microservices between each other, but unsure what setup this would entail.

specifically looking for a Golang solution

2views
2users
1 minread

Sorry to bother you, but if I may ask. Could you clarify what the "code" parameter is in this case or do I just leave it empty?

func (c *Client) GetOAuthToken(code string, state string) (*oauth2.Token, error) {

Do I need to make the request to /api/get-global-providers to get the code? I see that the response is quite large and is an array of providers, but I don't understand how this is relevant to the go sdk call.

Screenshot_2024-03-14_at_12.33.08.png

The model provider: provider_model_azure_gpt4 is not found saw the same on my hosted instance.

I think I broke it by submitting a message while receiving a response. I wish there was a way to start a new conversation or just delete the chat history, i see the history is bound to my IP so there's no way for me to start fresh which might cost you more in terms of tokens/usage and it starts to hallucinate more. Awesome tool though, answered most of my questions without much iteration.

Screenshot_2024-03-14_at_15.16.15.png

I'm afraid you have exhausted the tokens in the free plan

I woudn't mind running it myself with GPT-4, but I assume your configuration isn't public?

1 / 11
Mar 2024