question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FederatedStore-FederatedAccess: Inappropriate usage of GraphAuths arguments

See original GitHub issue

FederatedStore-FederatedAccess: Inappropriate usage of GraphAuths Arguments

During a AddGraph Operation a User can set graphAuths and readAccessPredicates. The following code appears to junk the graphAuths if readAccessPredicate was set.

this.readAccessPredicate = new String(JSONSerialiser.serialise(readAccessPredicate != null ? readAccessPredicate : new FederatedGraphReadAccessPredicate(addingUserId, graphAuths, isPublic)));

This will be confusing usage for setting authorisations. It is likely that the graphAuths should be merged into the readAccessPredicate.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
m29827commented, Oct 13, 2020

Made these changes together with those for #2320. I’ve applied @GCHQDev404’s suggestion to prevent users from mixing “old” auth configuration with the “new” AccessPredicate mechanism to Federated Access, Named Views and Named Operations which all behave similarly.

1reaction
d47853commented, Oct 9, 2020

Yeah that’s fair. I agree throwing an exception if both are set is nicer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Securing a federated graph - Apollo GraphQL Docs
First, we'll explore the attack surface of GraphQL APIs and effective mitigation strategies. We'll also discuss a common approach for handling authentication ......
Read more >
Overview of federated identity credentials in Azure Active ...
Federated identity credentials allow you to access Azure and Microsoft Graph resources without having to manage secrets.
Read more >
Using a federated identity to manage Amazon Redshift access ...
Using identity federation in AWS with credentials provided from GetDatabaseCredentials can simplify authorization and access to local data and to external data.
Read more >
View of Economic tussles in federated identity management
Such systems allow a user to authenticate once — single sign–on (SSO) — and then use that identity to access information across multiple...
Read more >
OpenID Connect vs OAuth vs SAML 2 - Security Journey
There are three major protocols used by companies for federated identity: ... Authentication and Authorization are two terms and different ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found