mock-saml icon indicating copy to clipboard operation
mock-saml copied to clipboard

How to send custom request that acceptable by mocksaml?

Open ioiofadhil opened this issue 2 years ago • 1 comments
trafficstars

Hi, thanks for the app. Helps a lot. I just learn how SSO works with ReactJS with Laravel as a backend. The flow that I made is kinda like this :

ReactJS -> Pop Up SSO Mocksaml -> Everything Good -> Laravel listens -> Share success to websocket with some users data -> ReactJS Receives

But currently, ReactJS listens to all channel that websocket has. I want to be able to decide what channels for each client listen by generating some custom attribute before hit the SSO login link. Is that possible to send a custom attribute request to login SSO link so Mocksaml can send it after the success response?

Thanks!

ioiofadhil avatar Sep 20 '23 04:09 ioiofadhil

@ioiofadhil You could use the RelayState queryparam in the request towards the SSO endpoint.

niwsa avatar Sep 23 '23 15:09 niwsa