Giter Site home page Giter Site logo

Comments (11)

inztinkt avatar inztinkt commented on September 16, 2024

Rely on the SaaS response before logging in

@zackkatz on this, we're going to silently fail the auto log in if no response from SaaS then right?

from client.

zackkatz avatar zackkatz commented on September 16, 2024

@inztinkt Yep.

from client.

inztinkt avatar inztinkt commented on September 16, 2024

@zackkatz for the data we send to SaaS, if we send too much we could be seen as 'spying' on users.

I think we can get away with sending the $identifier string and $_SERVER array. Thoughts?

from client.

zackkatz avatar zackkatz commented on September 16, 2024

The only user it’s “spying” on is the support person. I don’t see this as a problem. @trustedlogin/core Shawn, I’d appreciate your thoughts.

from client.

inztinkt avatar inztinkt commented on September 16, 2024

Totally agree, but may get flagged by folks reviewing/checking plugin code that use TL CLient. So wanted to confirm.

from client.

zackkatz avatar zackkatz commented on September 16, 2024

from client.

zackkatz avatar zackkatz commented on September 16, 2024

I just remembered we are okay on that because the user sill have clicked a button to initiate access granting.

from client.

inztinkt avatar inztinkt commented on September 16, 2024

Makes sense to me. Just waiting on the endpoint at SaaS to send this to :)

from client.

shawnhooper avatar shawnhooper commented on September 16, 2024

@inztinkt

ENDPOINT: /accounts/{accountId}/login-request
AUTHENTICATION: Add the Public Key as the Bearer token

Requires an accessKey in the request body:

{
"accessKey": {{access_key}}
}

I thought about putting the access key in the URL itself, but worried about there being access keys that contain a space? Could break. So used request body instead.

Does that work for you?

//cc @zackkatz

from client.

zackkatz avatar zackkatz commented on September 16, 2024

@shawnhooper Should we have an /activity endpoint rather than a specific /login-request endpoint?

We could do something like:

{
"accessKey": {{access_key}},
"activity": "login-request" 
}

Does that make any sense? I'm not sure.

from client.

inztinkt avatar inztinkt commented on September 16, 2024

AccessKeyChecks::check_validity( $identifier ) pings <api>/verify-identifier with the following info in the body:

array(
	'identifier' => $identifier,
	'timestamp'  => time(),
	'user_agent' => $_SERVER['HTTP_USER_AGENT'],
	'user_ip' => $_SERVER['REMOTE_ADDR'],
);

@shawnhooper @zackkatz let me know if anything needs to be changed.

from client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.