0

I am trying to create a session using pre-existing cookie. However, dont seem to find any way to configure micronaut application.

Ideal flow

  1. Browser calls a rest API
  2. Server detects no session (Unauthenticated)
  3. Request is intercepted and login is performed thro' a call to an external system using the passed in cookie.
  4. if success, Request continues to rest resource and return the result
  5. if fail, return 401

I dont seem to find a way to intercept the request and authenticate on the fly.

Tried to work with Session and idToken but not sure if those are right options. Also, tried to override SessionSecurityfilterRejectionHandler without any luck.

S M
  • 1

0 Answers0