Share via

Deployment from VS with Custom Forms Based Security with 2FA/MFA

Justin Jondle 1 Reputation point
2021-02-19T23:16:00.42+00:00

I have built a custom security extension for SSRS 2017 that accepts username, password, and a TOTP for 2FA that passes that onto a REST API to validate the information. The extension is working beautifully.

Now I'm trying to figure out the best way to have my BI/Report developers publish reports. Currently I have given them access to disable 2FA on their account, deploy inside of Visual Studio as normal with the forms credentials, and then enable 2FA again. It is working, but it has security issues I don't like and was trying to come up with a more elegant way.

Really, I think I just need help with authenticating programmatically. From there I have a lot of options. I'm leaning towards a VS Extension, but I can't quite seem to get the authentication piece. I see the SOAP API has a LogonUser() method, but it only supports username, password, and domain fields and not custom fields. I don't see any authentication endpoints in the REST API, so I guess it only works from an already authenticated browser.?.? As I'm typing this, I'm wondering if a .NET Core HttpClient could be used to mimic an interactive logon and share cookies between requests to use the REST API.?.?

Does anyone have any ideas on how to programmatically authenticate or any other clever solutions?

Thanks,
Justin

SQL Server Reporting Services
SQL Server Reporting Services

A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Joyzhao-MSFT 15,651 Reputation points
    2021-02-22T07:17:24.037+00:00

    Hi @Anonymous ,
    To be honest , it is out of my capabilities, I'm sorry I cannot offer very insightful suggestion on this case. Thanks for your understanding.
    Best Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.