Skip to content

Authentication in sample code not working - token parameter required #140

@kothes-support

Description

@kothes-support

Hello,
I just downloaded the Groupsharekit from NuGet in Visual Studio and wanted to test this sample code:

var groupShareClient = await GroupShareClient.AuthenticateClient(userName, password, new Uri("http://yourgroupshareaddress"), GroupShareClient.AllScopes);

var users = await groupShareClient.User.GetAllUsers();

foreach (var user in users)
{
    Console.WriteLine(user.DisplayName +" loves Groupshare!");
}

Unfortunately it was not working because a token parameter is required for this method:
GroupShareClient.AuthenticateClient(string token, string user, string password, string bearerId, Uri baseAddress, IEnumerable<string> scopes)

I am not that familiar with using REST-API, I just want to use the C# wrapper. But it does not seem that there is any more sample code anywhere or is there?
Where do I get the required token from? ist it stored somewhere in the Groupshare server?
Any additional documentation would be greatly appreciated.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions