Page MenuHomePhorge

Work in progress discord auth
Needs RevisionPublic

Authored by doommius on Jan 12 2024, 11:54.

Details

Summary

task @ https://we.phorge.it/T15708 contains information on status, TODOs and questions about implementation

Test Plan

It's a work in progress but auth using discord and passing of basic user information works.

Diff Detail

Repository
rP Phorge
Branch
master
Lint
Lint Warnings
Unit
Test Failures
Build Status
Buildable 1016
Build 1016: arc lint + arc unit

Unit TestsFailed

TimeTest
153 msPhabricatorLibraryTestCase::testLibraryMap
Assertion failed, expected 'true' (at PhutilLibraryTestCase.php:51): The library map is out of date. Rebuild it with `arc liberate`. These entries differ: .
261 msPhabricatorAuthPasswordTestCase::testCompare
2 assertions passed.
10 msPhabricatorAuthPasswordTestCase::testPasswordBlocklisting
15 assertions passed.
1,073 msPhabricatorAuthPasswordTestCase::testPasswordEngine
20 assertions passed.
223 msPhabricatorAuthPasswordTestCase::testPasswordUpgrade
9 assertions passed.
View Full Test Results (1 Failed · 11 Passed)

Event Timeline

Also, apart from the linter results, this patch should not include the changes from D25512

(Small tip: never work in master. Create a git branch for each feature, in sync with origin/master, and with your commits on top of that, so your patch is minimal and arc diff works)

(Small tip: never work in master. Create a git branch for each feature, in sync with origin/master, and with your commits on top of that, so your patch is minimal and arc diff works)

I am working in a separate branch locally but arc diff gave me some issues with trying to create the diff via the tool locally so i just merged to master and created the diff.

Also, apart from the linter results, this patch should not include the changes from D25512

Yes, but that patch is required for the development of this feature as the string parsing breaks the auth config page :)

doommius edited the summary of this revision. (Show Details)
avivey added inline comments.
src/applications/auth/adapter/PhutilDiscordAuthAdapter.php
40

We have urisprintf, that might work better here.

Thanks again. Since this is a WIP, let's mark as such.

src/applications/auth/storage/PhabricatorAuthProviderConfigTransaction.php
153

Please omit this change. Feel free to land D25512

This revision now requires changes to proceed.Jan 22 2024, 12:10