Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UML-3132 service api one login dummy endpoint returns a user #2398

Merged
merged 5 commits into from
Nov 6, 2023

Conversation

MishNajam
Copy link
Contributor

Purpose

Creates a simple handler that returns a user object on service-api for one login.

Fixes UML-3132

Checklist

  • I have performed a self-review of my own code
  • I have added relevant logging with appropriate levels to my code
  • New event_codes have been documented on the wiki page
  • I have updated documentation (Confluence/GitHub wiki/tech debt doc) where relevant
  • I have added tests to prove my work
  • I have added welsh translation tags and updated translation files
  • I have run an accessibility tool on any pages I have made changes to and fixed any issues found
  • I have notified the Interaction Designer of any content changes so that appropriate screenshots/flow diagram changes can be made
  • The product team have tested these changes

@MishNajam MishNajam requested a review from a team as a code owner November 2, 2023 17:20
@@ -136,6 +137,7 @@
$app->patch('/v1/auth', AuthHandler::class, 'user.auth');

$app->get('/v1/auth-one-login', OneLoginAuthenticationRequestHandler::class, 'user.auth-one-login');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use /v1/auth/start and /v1/auth/callback

@@ -30,6 +30,7 @@
use Mezzio\MiddlewareFactory;
use Psr\Container\ContainerInterface;
use App\Handler\OneLoginAuthenticationRequestHandler;
use App\Handler\OneLoginAuthorisationProcessHandler;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use App\Handler\OneLoginAuthorisationProcessHandler;
use App\Handler\OneLoginAuthenticationCallbackHandler;

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #2398 (b65424d) into main (46c77d1) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #2398   +/-   ##
=========================================
  Coverage     92.03%   92.03%           
  Complexity     1463     1463           
=========================================
  Files           279      279           
  Lines          6656     6656           
=========================================
  Hits           6126     6126           
  Misses          513      513           
  Partials         17       17           
Flag Coverage Δ
use-an-lpa-admin 88.81% <ø> (ø)
use-an-lpa-api 96.84% <ø> (+0.06%) ⬆️
use-an-lpa-front 89.22% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...rc/Common/src/Service/OneLogin/OneLoginService.php 100.00% <100.00%> (ø)

@MishNajam MishNajam merged commit 488c59b into main Nov 6, 2023
32 checks passed
@MishNajam MishNajam deleted the UML-3132-service-api-dummy-redirect branch November 6, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants