exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 125 discussion

Actual exam question from CompTIA's CAS-004
Question #: 125
Topic #: 1
[All CAS-004 Questions]

A software house is developing a new application. The application has the following requirements:
✑ Reduce the number of credential requests as much as possible
✑ Integrate with social networks
✑ Authenticate users
Which of the following is the BEST federation method to use for the application?

  • A. WS-Federation
  • B. OpenID
  • C. OAuth
  • D. SAML
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BreakOff874
Highly Voted 2 years ago
Selected Answer: B
OAuth is not the best choice for the given requirements because OAuth is an authorization framework rather than an authentication protocol. OAuth allows third-party applications to access a user's resources without sharing their credentials, focusing on providing access to resources and delegating permissions. While OAuth is often used for integrating with social networks, it does not inherently authenticate users. OpenID, on the other hand, is designed specifically for user authentication and can seamlessly integrate with social networks. In this case, OpenID would be a more suitable federation method for the application, as it meets all the specified requirements, including reducing the number of credential requests, integrating with social networks, and authenticating users. While SAML (Security Assertion Markup Language) is a widely used federation method for single sign-on (SSO) and can help reduce the number of credential requests, it is not the best choice for the given requirements, specifically for integrating with social networks.
upvoted 15 times
...
BiteSize
Highly Voted 1 year, 10 months ago
Selected Answer: B
OpenID is about authentication (ie. proving who you are), OAuth is about authorization (ie. granting access to functionality/data/etc.. without having to deal with the original authentication). OAuth could be used in external partner sites to allow access to protected data without them having to re-authenticate a user. The blog post "OpenID versus OAuth from the user’s perspective" has a simple comparison of the two from the user's perspective and "OAuth-OpenID: You’re Barking Up the Wrong Tree if you Think They’re the Same Thing."
upvoted 10 times
...
IT_Master_Tech
Most Recent 8 months ago
ChatGPT says OAuth 2.0 with OpenID.
upvoted 1 times
...
IT_Master_Tech
8 months ago
ChatGPT says OAuth.
upvoted 1 times
...
23169fd
10 months ago
Selected Answer: B
Purpose: OpenID is an authentication protocol that allows users to authenticate with a third-party service (like Google, Facebook, etc.) without creating a separate account for each service they use. Reduce Credential Requests: By using OpenID, users can log in with their existing credentials from their preferred social networks or identity providers, reducing the need to create and remember new credentials. Integration with Social Networks: OpenID is widely supported by major social networks and identity providers, making it easy to integrate social login functionality into the application. Authenticate Users: OpenID specifically handles user authentication, ensuring that the application can verify the identity of users without managing passwords directly.
upvoted 1 times
23169fd
10 months ago
OAuth by itself does not handle user authentication; it is used for authorization.
upvoted 1 times
...
23169fd
10 months ago
SAML is powerful for enterprise environments, it is less commonly used for integrating social logins and consumer-facing applications compared to OpenID
upvoted 1 times
...
...
EAlonso
10 months ago
Definitively is B.
upvoted 1 times
...
Delab202
1 year, 4 months ago
Selected Answer: B
In summary, while OAuth focuses on authorization, OpenID Connect builds an authentication layer on top of OAuth, and SAML is a protocol primarily used for exchanging authentication and authorization data in a federated SSO environment. The choice between them depends on the specific requirements of the application and the use case at hand.
upvoted 1 times
...
joschmo
1 year, 5 months ago
Selected Answer: B
"Additionally, SAML does not support single sign-on (SSO) across multiple domains or applications, which means that the user has to log in separately for each one. OpenID Connect allows the user to log in with their existing social media or email accounts, such as Google or Facebook."
upvoted 1 times
...
ThatGuyOverThere
1 year, 7 months ago
Selected Answer: B
What BreakOff874 said.
upvoted 2 times
...
joinedatthehop
1 year, 7 months ago
Selected Answer: B
CompTIA's CertMaster states: OpenID is a method of authenticating users with certain sites that participate in an OpenID system. This enables them to retain a single account for all participating sites. A user will register with an OpenID system in a given domain like they would with any other account. A site under this OpenID domain will then give the user the option to sign in using this system. The site then contacts its external OpenID provider in order to verify that the login credentials supplied by the user are correct. Large companies, such as Google and Amazon, use their own OpenID systems. OpenID Direct adds a layer of authentication to OAuth 2.0, the latest version of the protocol.
upvoted 2 times
...
CXSSP
1 year, 7 months ago
Selected Answer: B
OpenID
upvoted 2 times
...
Nnatech
1 year, 8 months ago
Selected Answer: B
OpenID is an open standard for authentication that allows users to log in to websites and applications using their existing identity provider, such as Google or Facebook. This eliminates the need for users to create new usernames and passwords for each website or application. OpenID is a popular authentication framework that is widely supported by websites and applications. It is a good choice for applications that need to provide a secure and convenient way for users to authenticate.
upvoted 4 times
...
Sam1289
1 year, 9 months ago
Selected Answer: B
OpenID
upvoted 3 times
...
imather
1 year, 9 months ago
Selected Answer: B
OAuth does NOT provide authentication on it's own, only authorization. Both SAML and OpenID provide authorization, reduce the amount of sign ins, and can integrate with social networks. Bit of a coin flip, but OPenID is more often used with social media than SAML. So B, OPenID. https://www.trelica.com/blog/what-sort-of-single-sign-on-should-i-use-openid-connect-or-saml2 https://jumpcloud.com/blog/saml-vs-openid https://cloudinfrastructureservices.co.uk/oauth2-vs-openid-whats-the-difference/ https://cloudinfrastructureservices.co.uk/saml-vs-openid-whats-the-difference-explained/
upvoted 5 times
...
Sleezyglizzy
1 year, 9 months ago
C only one that makes sense
upvoted 1 times
...
lifeblood12005
1 year, 10 months ago
SAML is typically used for SSO in government and enterprise applications (identity management), where backend system processing of XML is commonplace. Many government citizen ID schemes (e.g., UK Verify) are SAML based. OpenID Connect: If you’ve used your Google to sign in to applications like YouTube, or Facebook to log into an online shopping cart, then you’re familiar with this authentication option. OpenID Connect is an open standard that organisations use to authenticate users. IdPs use this so that users can sign in to the IdP, and then access other websites and apps without having to log in or share their sign-in information OAuth2 is widely used in consumer and enterprise applications, both in authorization and authentication roles. It is typically used to authorize access to RESTful APIs, where its use of access tokens makes it simple and attractive. The correct answer is: OpenID
upvoted 3 times
...
p1s3c
2 years ago
Selected Answer: C
C. OAuth. OAuth is an open standard for authorization that provides a way for users to authenticate and authorize applications without having to share their credentials. It enables the application to access resources on behalf of the user, without the user having to give out their password. This is done by obtaining an access token that is valid for a specific set of resources and a limited amount of time. In this case, the application needs to integrate with social networks and authenticate users without requiring them to enter their credentials every time they use the application. OAuth allows the application to authenticate the user with the social network provider and obtain an access token, which can be used to access the user's social network resources on their behalf. This reduces the number of credential requests needed and provides a seamless user experience.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago