Jump to content

Create API key from within a plugin


Recommended Posts

Yes so it is the AuthKeys endpoint in sessionService. You can create an app with POST.


Then use GET, to get the apps API Key that is auto generated

Link to post
Share on other sites

I don't see one you're right.


                using (await HttpClient.Post(
                        new HttpRequestOptions
                            Url = "/Auth/Keys?App=" + app.Name,
                            CancellationToken = CancellationToken.None,
                            EnableHttpCompression = false,

Does that work?

Edited by chef
Link to post
Share on other sites

Wow, didn't know that.

So i asume that it also was no mistake by you that you didn't provide a host and port in the request?



Well thats the thing I'm not sure about. It would have to be tested.


The ApiClient object would already be authenticated. I'm pretty sure.


EDIT: upon further inspection... I might not be correct.

Edited by chef
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...