Skip to content

Feature request: SCRAM-SHA-256 authentication #314

@Skorpeo

Description

@Skorpeo

Feature request: SCRAM-SHA-256 authentication

Hi,

I would like to see if you guys would be interested in implementing the SCRAM-SHA-256 authentication?

I have written a routine using aiosasl library but I have no experience with Cython and am having trouble implementing the aiosasl routine using cython. I can't use await expressions so I tried using loop.create_task inside Cython but I still get errors. I think I have written what I think is 80%-90% of what's required (albeit I can't test it so can't be sure). I have attached the code. I think some educated eyes may be able to perhaps fix the loose ends to make this work? I based my code on whats in the library.

This would also introduce aiosasl dependency...

relevant links:
postgres sasl-authentication
postgres message-formats

pgsram_mockup.py.zip

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