Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 when trying to login as seller #42

Open
nik-pakhomov opened this issue Feb 13, 2019 · 0 comments
Open

400 when trying to login as seller #42

nik-pakhomov opened this issue Feb 13, 2019 · 0 comments

Comments

@nik-pakhomov
Copy link

If you will make a request with sellers credentials via SDK library, you get 400 error. Code to reproduce:

        const string clientId = "your_client_id";
        const string userName = "user_name";
        const string password = "user_password";

        var ocClient = new OrderCloudClient(new OrderCloudClientConfig
        {
            ClientId = clientId,
            Roles = new []{ ApiRole.FullAccess },
            Username = userName,
            Password = password,
            GrantType = GrantType.Password
        });

        // Call any method via OrderCloud.SDK library cause 400 error on auth.
        var userInfo = await ocClient.Me.GetAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant