Classroom ऐड-ऑन में Google SSO को लागू करने के बारे में दिशा-निर्देश पाने के लिए, आसानी से साइन इन करने की सुविधा वाला पेज देखें. बिना किसी रुकावट के साइन इन करने की सुविधा से जुड़ी गाइड में, टेस्ट प्लान के बारे में भी बताया गया है. इसका इस्तेमाल यह पक्का करने के लिए किया जा सकता है कि आपका ऐड-ऑन, साइन इन करने के सबसे सही तरीकों का पालन कर रहा हो.
साइन इन करने का फ़्लो
उपयोगकर्ताओं को साइन इन करने में आने वाली समस्याओं को कम करने के लिए, Google Classroom, iframe खोलने पर login_hint क्वेरी पैरामीटर उपलब्ध कराता है. login_hint, उपयोगकर्ता का यूनीक Google आईडी होता है. यह उपयोगकर्ता को तब मिलता है, जब वह पहली बार आपके ऐड-ऑन में साइन इन करता है. यह पैरामीटर, Google Classroom में साइन इन किए गए उपयोगकर्ता के बारे में जानकारी देता है. इन क्वेरी पैरामीटर के बारे में ज़्यादा जानकारी के लिए, साइन-इन पैरामीटर से जुड़ी गाइड का पेज देखें.
अगर Google Classroom के मौजूदा उपयोगकर्ता के login_hint क्वेरी पैरामीटर का मान, ऐड-ऑन में साइन इन किए गए किसी भी उपयोगकर्ता से मेल नहीं खाता है, तो आपको Google का साइन-इन डायलॉग दिखाना होगा. बटन को ब्रैंडिंग के लिए Google के दिशा-निर्देशों का पालन करना होगा. अगर उपयोगकर्ता पहले से ही साइन इन है, तो उसे फिर से साइन इन करने के लिए नहीं कहा जाना चाहिए.
पहली इमेज. जब कोई उपयोगकर्ता पहली बार आपके ऐड-ऑन को लॉन्च करता है, तब साइन इन करने का फ़्लो.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# Sign in\n\nGoogle Classroom add-ons **must** use Google single sign-on (SSO) to identify\nand authenticate users.\n\nSee [Google Identity's OpenID Connect Guide](https://developers.google.com/identity/protocols/oauth2/openid-connect) for more information on SSO. We\nalso recommend referencing Google's official documentation on user sign-up and\nsign-in for [automatic sign in](https://developers.google.com/identity/gsi/web) and [Sign-In Branding Guidelines](https://developers.google.com/identity/branding-guidelines).\n\nSee the [frictionless sign-in page](/workspace/classroom/add-ons/developer-guides/frictionless-signin) for implementation guidance for Google SSO\nin Classroom add-ons. The frictionless sign-in guide also refers\nto the [test plan](/static/workspace/classroom/assets/classroom_add_ons_test_plan.pdf) that can be used to ensure your add-on is\nfollowing sign-in best practices.\n\nSign in flow\n------------\n\nTo reduce sign-in friction for users, Google Classroom provides the\n`login_hint` query parameter when an iframe is opened. `login_hint` is a user's\nunique Google ID, and is provided *after* the user has signed into your add-on\nfor the first time. This parameter provides context on the user that's signed\ninto Google Classroom. See our [sign-in parameters guide page](/workspace/classroom/add-ons/developer-guides/iframes#sign-in_related_parameters) for a more\ndetailed discussion of these query parameters.\n\nYou must display a Google sign-in dialog if the `login_hint` query parameter of\nthe current Google Classroom user doesn't match any signed-in user of the\nadd-on. The button must adhere to [Google's branding guidelines](https://developers.google.com/identity/branding-guidelines). If the user is\nalready signed in, they shouldn't be prompted to sign-in again.\n\n**Figure 1.** Sign in flow when a user initially launches\nyour add-on.\n| **Important:** The sign in button should only be seen when the add-on doesn't have a signed in user to compare against the `login_hint` query parameter. The sign in button is unnecessary if the add-on matches the signed in user using the value of `login_hint`; in this case, the add-on should keep the user signed in."]]