https://supertokens.com/ logo
Title
m

mib200

01/03/2023, 7:05 AM
Can anybody point me in API/SDK direction using which we can create/update a user from backend? I know there are similar API's available for frontend sinInUpFeature etc..
r

rp

01/03/2023, 7:07 AM
hey @mib200 which recipe? Add which SDK?
m

mib200

01/03/2023, 7:07 AM
@rp I am using
ThirdPartyPasswordless
r

rp

01/03/2023, 7:08 AM
What issue are you facing with SAML integration?>
m

mib200

01/03/2023, 7:08 AM
on the configured callback URL, the code from SAML provider is `POST`ed
now as per example, the frontend should automatically call
accessTokenAPI: {
                  url: `http://localhost:3000/api/oauth/token`,
                  params: {
                    client_id,
                    client_secret,
                    grant_type: 'authorization_code',
                    redirect_uri: redirectURI || '',
                    code: authCodeFromRequest || '',
                  },
                },
accessTokenAPI
in providers
but it doesn't happen
and thus the session is not getting created
r

rp

01/03/2023, 7:10 AM
do you call the
thirdPartySignInUp
function from the frontend on the callback screen?
m

mib200

01/03/2023, 7:11 AM
yes, I do. Other passwordless integration are working fine, just SAML one is giving issue
@rp are the methods available in
ThirdPartyPasswordless
?
r

rp

01/03/2023, 7:26 AM
yes they are
What you call
thirdPartySignInUp
, what happens?
Does the API call get made? What is the input / output?
m

mib200

01/03/2023, 10:08 AM
let me share you the output in sometime
@rp checked it out
but the
thirdPartySignInUpPOST
is not getting called
neither is
consumeCodePOST
although the same works fine for passwordless and google sign in
one thing I noticed after running example from BoxyHQ is that the callback is being
GET
http://localhost:3366/auth/callback/saml-jackson?code=
whereas for me, its being
POST
Also, am using Jackson as a
library
instead of running a dedicated
server
r

rp

01/03/2023, 12:44 PM
hmmmm. Im not too familiar with the way to run it via a library
but yea, the callback should be GET and open your website route.
m

mib200

01/03/2023, 1:32 PM
hmm.. I created the session manually. But will surely look into building this custom provider with more streamlined access
r

rp

01/03/2023, 1:34 PM
Hmm. I’m not really sure why it isn’t working out of the box.