Giter Club home page Giter Club logo

dotnetdigestauth's People

Contributors

alkampfergit avatar dependabot[bot] avatar flakey-bit avatar simonowen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotnetdigestauth's Issues

How to add more logging

I've a software where I added DIGEST authentication. Everything works fine in my development machine, I'm using https and valid certificates, exactly as production environment.

In production environment it does not works, I'm using to let word authenticate, but against production server it simply continue to ask me credentials.

Is there any way I can log what went wrong during DIGEST auth? actually I have no error logs.

Allow customizing the scheme name & scheme display name

Currently, AuthenticationBuilderExtensions::AddDigestAuthentication does not allow customizing the scheme name or scheme display name, we should add an overload that allows specifying it.

Check for other areas of the code where the scheme name is assumed to be "Digest"

@rolfik

.NET 5 support

Dear @flakey-bit,
I have used Your project in our ASP.NET Core 5 application and updated it to .NET 5 in my fork.
I use it in combination with cookie authentication which allows me to do login/logout as well, but that integration is part of our another library we use internally.

Thank You for Your work.

Marek Ištvánek

Add support for SHA-256 and SHA-512/256 algorithms (RFC 7616)

RFC 7616 from September 2015 about HTTP Digest Access Authentication adds support for two new algorithms, SHA2-256 as mandatory and SHA2-512/256 as a backup, and defines the proper algorithm negotiation.

Does this project have support for SHA-256 and SHA-512/256 algorithms?

Does this project implement RFC 7616 or the original RFC 2617 from June 1999?

If not, it is planned to implement RFC 7616? Will be pull requests accepted?

protecting static files / wwwroot under Kestral / core

Using your example, trying to implement this to protect static files using a simple auth method such as digest.

I implemented a middleware, but for whatever reason I can't get it to prompt with the HandleChallengeAsync but the HandleAuthenticateAsync is called every time.

I wrote up a more detailed Stackoverflow post (https://stackoverflow.com/questions/58494687/aspnet-core-3-protecting-static-files-wwwroot-with-custom-auth-provider-such) but was curious if you had a better / cleaner solution to protecting the files hosted under static / wwwroot folder in Kestral / netcore3.

Using FlakeyBit.DigestAuthentication.AspNetCore 2019.3.20.3 generates package warnings

The ASP.NET Core NuGet package has a stated dependency on the FlakeyBit.DigestAuthentication.Implementation NuGet package with a version greater than or equal to 2019.3.20.3. Since there is no .3 package, only .4, this causes a warning when restoring packages using Visual Studio 2019.

This is understandably just a nuisance issue, so if you'd want to simply close it without taking any action on it, that's understandable. Otherwise, publishing a new ASP.NET Core package with the bumped implementation package dependency should clear up the issue.

InvalidDataException when posting IFormFile [DotNetCore]

Hello,

I'm using multipart/form-data to upload a file and want to protect it using digest authentication.
Without the Authorize attribute the test file gets read without any issue. The file is small enough (100kB) to pass through without hitting any dotnet core limits.

Using digest authentication I suddenly get:
InvalidDataException: Multipart body length limit 16384 exceeded.

Among other things I've tried setting [RequestSizeLimit(long.MaxValue)] on the action and configuring the global MultipartBodyLengthLimit to a higher limit but with no success.

Since it seems to work without authentication I believe it is somehow related.
Any ideas?

I've attached a small example to reproduce.

[Authorize(AuthenticationSchemes = "Digest")]
public async Task<IActionResult> PostFormData([FromForm] IFormFile file)
{
          using (var sr = new StreamReader(file.OpenReadStream()))
          {
                    var content = await sr.ReadToEndAsync();
                    return Ok(content);
          }
}

Identity Name is null

I've implemented DIGEST auth with your library (kudo it seems to work fine). I have only a small question, the User object that get injected into the ASP.NET core controller has a username null and a claim DIGEST_AUTHENTICATION_NAME that contains the username used to authenticate.

My question is: is there an option to let the username to be also the Name of generated user?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.