Skip to content

OAuth 1.0 auth not working for empty consumer secret #776

Closed
@ivan-milovanovic-troxo

Description

@ivan-milovanovic-troxo

I tried to use RestSharper as client for MAAS RestAPI and stumbled upon an issue with OAuth 1.0 authentication implementation.

RestSharper does not allow empty consumer secret, this is incorrect cause consumer secret can be empty string. "The Consumer Secret MAY be an empty string" from OAuth Core 1.0

In OAuthWorkflow exception is being thrown if consumer secret is empty:

    if (this.ConsumerSecret.IsNullOrBlank())
    {
        throw new ArgumentException("You must specify a consumer secret");
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions