graph toolkit SSO without Login Component

%3CLINGO-SUB%20id%3D%22lingo-sub-2578503%22%20slang%3D%22en-US%22%3Egraph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2578503%22%20slang%3D%22en-US%22%3E%3CP%3Ein%20my%20teams%20tab%20i%20have%20followed%20the%20below%20link%20and%20authenticated%20Teams%20Tab.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fteams%2520tab%20sso%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftabs%2Fhow-to%2Fauthentication%2Fauth-aad-sso%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20want%20to%20able%20to%20use%20graph%20tool%20kit%20with%20out%20Login%20component%20as%20i%20have%20sso%20for%20tab%2C%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20it%20possible%20to%20do%20so%3F%26nbsp%3B%20if%20so%20can%20i%20call%20the%20graph%20toolkit%20components%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2578503%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAuthentication%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Egraph%20toolkit%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESSO%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%20Provider%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2595925%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2595925%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085229%22%20target%3D%22_blank%22%3E%40Umag98%3C%2FA%3E%26nbsp%3B-%26nbsp%3BHello%2C%20%3CBR%20%2F%3EHave%20a%20look%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Ftoolkit%2Fproviders%2Fproviders%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft%20Graph%20Toolkit%20providers%3C%2FA%3E.%20You%20can%20use%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Ftoolkit%2Fproviders%2Fcustom%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECustom%20provider%20-%20Microsoft%20Graph%20%7C%20Microsoft%20Docs.%26nbsp%3B%3C%2FA%3ELet%20me%20know%20if%20you%20need%20any%20help.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThanks%2C%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHunaid%20Hanfee%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E--------------------------------------------------------------------------------------------------------------------------------------------%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20the%20response%20is%20helpful%2C%20please%20click%20%22**Mark%20as%20Best%20Response**%22%20and%20like%20it.%20You%20can%20share%20your%20feedback%20via%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevSupportFeedback)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EMicrosoft%20Teams%20Developer%20Feedback%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Blink.%20Click%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevCommunityEscalationForm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bto%20escalate.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2678215%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2678215%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1092873%22%20target%3D%22_blank%22%3E%40HunaidHanfee-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20using%20the%20simple%20provider.%3CBR%20%2F%3Eit%20is%20not%20working%20as%20expected.%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eprovider%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3D%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Enew%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPA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C%2FSPAN%3E%3CSPAN%3EglobalProvider%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EsetState%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3EProviderState%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3ESignedIn%3C%2FSPAN%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eand%20i%20am%20trying%20to%20call%20the%20People%20picker%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26lt%3B%3C%2FSPAN%3E%3CSPAN%3Ediv%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3CSPAN%3EgotAccessToken%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%26amp%3B%26amp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26lt%3B%3C%2FSPAN%3E%3CSPAN%3Ediv%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%26lt%3B%3C%2FSPAN%3E%3CSPAN%3EPeoplePicker%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3CSPAN%3E...%3C%2FSPAN%3E%3CSPAN%3Eprops%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EpickerType%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3D%3D%3D%26nbsp%3B%3C%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B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%3CSPAN%3Ediv%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThe%20accessToken%20i%20am%20getting%20from%20the%20asp.net%20web%20api%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CDIV%3Ewith%20which%20i%20am%20able%20to%20call%20graph%20apis.%20in%20the%20asp.net%20core%20webapi.%3CBR%20%2F%3Ei%20am%20using%20the%20same%20here%2C%20but%20it%20is%20not%20working.%3C%2FDIV%3E%3CDIV%3Ethis%20is%20the%20error%20I%20get%20when%20i%20try%20to%20do%20it%3CBR%20%2F%3E%3COL%20class%3D%22children%20expanded%22%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Eerror%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-object%20value%22%3E%7Bcode%3A%20%22InvalidAuthenticationToken%22%2C%20message%3A%20%22Access%20token%20validation%20failure.%20Invalid%20audience.%22%2C%E2%80%A6%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3COL%20class%3D%22children%20expanded%22%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Ecode%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-string%20value%22%3E%22InvalidAuthenticationToken%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3EinnerError%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-object%20value%22%3E%7Bdate%3A%20%222021-08-24T08%3A27%3A14%22%2C%20request-id%3A%20%22494c6420-fedc-4314-b71f-2f8e188a38c1%22%2C%E2%80%A6%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Emessage%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-string%20value%22%3E%22Access%20token%20validation%20failure.%20Invalid%20audience.%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FOL%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2686620%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2686620%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085229%22%20target%3D%22_blank%22%3E%40Umag98%3C%2FA%3E%20-%20Looks%20like%20your%20configuration%20is%20wrong%20for%20token%20validation%20%22audience%22.%3CBR%20%2F%3ECould%20you%20please%20reverify%20%26amp%3B%20test%20it%20again.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2687668%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2687668%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096313%22%20target%3D%22_blank%22%3E%40ChetanSharma-msft%3C%2FA%3E%26nbsp%3B'%3CBR%20%2F%3EAs%20I%20already%20have%20a%20accessToken%2C%20i%20can%20pass%20that%20right%2C%20or%20should%20i%20pass%20the%20assertion%20token%20from%20the%20teams%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2691210%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2691210%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085229%22%20target%3D%22_blank%22%3E%40Umag98%3C%2FA%3E%26nbsp%3B%3A%26nbsp%3BHello%20I%20have%20tried%20this%20with%20access%20token%20I%20got%20following%20this%20doc%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fauth-v2-service%3Fcontext%3Dgraph%252Fapi%252F1.0%26amp%3Bview%3Dgraph-rest-1.0%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGet%20access%20without%20a%20user%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20tested%20with%20the%20snippet%20you%20shared%20and%20it%20worked%20fine.%20Could%20you%20please%20tell%20the%20endpoint%20you%20are%20using%20to%20get%20%3CSTRONG%3Eaccess%20token%3C%2FSTRONG%3E%3F%20Also%2C%20it%20would%20be%20better%20if%20you%20can%20share%20the%20whole%20request(by%20hiding%20the%20private%20information).%20Please%20go%20through%20this%20question%20to%20understand%20more%20about%20the%20error%20you%20got%20%3A%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fanswers%2Fquestions%2F93412%2Faccess-token-validation-failure-invalid-audience.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAccess%20token%20validation%20failure.%20Invalid%20audience.%20-%20Microsoft%20Q%26amp%3BA%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2691973%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2691973%22%20slang%3D%22en-US%22%3Eour%20endpoin%20is%20%3A%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2F%7B0%7D%2Foauth2%2Ftoken%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2F%7B0%7D%2Foauth2%2Ftoken%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%7B%20%22client_id%22%2C%20%7D%2C%3CBR%20%2F%3E%7B%20%22client_secret%22%2C%20%7D%2C%3CBR%20%2F%3E%7B%20%22scope%22%2C%20%7D%2C%3CBR%20%2F%3E%7B%20%22resource%22%2C%20%7D%2C%3CBR%20%2F%3E%7B%20%22grant_type%22%2C%20%7D%2C%3CBR%20%2F%3E%7B%20%22requested_token_use%22%2C%20%7D%2C%3CBR%20%2F%3E%7B%20%22assertion%22%2C%20%7D%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2698151%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2698151%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085229%22%20target%3D%22_blank%22%3E%40Umag98%3C%2FA%3E%26nbsp%3B%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHey%2C%3CBR%20%2F%3EI%20think%20you%20should%20use%20this%20endpoint%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2F%7Btenant%7D%2Foauth2%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2F%7Btenant%7D%2Foauth2%2F%3C%2FA%3E%3CEM%3Ev2.0%3C%2FEM%3E%2Ftoken%3CBR%20%2F%3EPlease%20follow%20this%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fauth-v2-service%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGet%20access%20without%20a%20user%3C%2FA%3E%20-%26gt%3B%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fauth-v2-service%3Fview%3Dgraph-rest-1.0%234-get-an-access-token%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGet%20an%20access%20token%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EAlso%20you%20need%20these%20permissions%20%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Ftoolkit%2Fcomponents%2Fpeople-picker%23microsoft-graph-permissions%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CEM%3Elink%3C%2FEM%3E%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2717742%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2717742%22%20slang%3D%22en-US%22%3EIs%20their%20any%20special%20need%20to%20change%20the%20end%20point%20as%20we%20are%20using%20the%20same%20endpoint%20to%20use%20graph%20api%20call.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2718138%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2718138%22%20slang%3D%22en-US%22%3ENo%2C%20token%20you%20get%20from%20this%20endpoint%20also%20works%20for%20all%20graph%20API.%20%3CBR%20%2F%3EPlease%20make%20sure%20that%20permission%20are%20given%20to%20you%20App%20registration.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2718498%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2718498%22%20slang%3D%22en-US%22%3ECan%20i%20know%20which%20are%20those%20permission.%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2723626%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2723626%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085229%22%20target%3D%22_blank%22%3E%40Umag98%3C%2FA%3E%26nbsp%3B-%20Hello%20%2C%26nbsp%3B%3CBR%20%2F%3EI%20have%20shared%20Permission%20in%20previous%20comment%20-%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1092873%22%20target%3D%22_blank%22%3E%40HunaidHanfee-MSFT%3C%2FA%3E%26nbsp%3B%40%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%20class%3D%221630912065535%22%3E%3CSPAN%3EAlso%20you%20need%20these%20permissions%20%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Ftoolkit%2Fcomponents%2Fpeople-picker%23microsoft-graph-permissions%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CEM%3Elink%3C%2FEM%3E%3C%2FA%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3EPlease%20follow%20this%20link%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Ftoolkit%2Fcomponents%2Fpeople-picker%23microsoft-graph-permissions%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EPeople-picker%20-%20Microsoft%20Graph%20Permissions.%3C%2FA%3E%3CBR%20%2F%3EPlease%20have%20a%20look%2C%20let%20us%20know%20if%20you%20have%20any%20query.%3CBR%20%2F%3EThanks%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2717188%22%20slang%3D%22en-US%22%3ERe%3A%20graph%20toolkit%20SSO%20without%20Login%20Component%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2717188%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085229%22%20target%3D%22_blank%22%3E%40Umag98%3C%2FA%3E%2C%20Let%20us%20know%20if%20you%20still%20facing%20any%20issue.%3C%2FLINGO-BODY%3E
Occasional Contributor

in my teams tab i have followed the below link and authenticated Teams Tab.

https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/auth-aad-sso

I want to able to use graph tool kit with out Login component as i have sso for tab, 

is it possible to do so?  if so can i call the graph toolkit components

 

 

15 Replies

@Umag98 - Hello,
Have a look at Microsoft Graph Toolkit providers. You can use Custom provider - Microsoft Graph | Microsoft Docs. Let me know if you need any help. 

 

Thanks, 

Hunaid Hanfee

-------------------------------------------------------------------------------------------------------------------------------------------- 

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

@HunaidHanfee-MSFT 

 

I tried using the simple provider.
it is not working as expected.

  provider = new SimpleProvider(async function getAccessTokenhandler(scopesstring[]) {
                        try {
                            let _accessToken = localStorage.getItem("accessToken");
                            if (_accessToken) {
                                return _accessToken;
                            }
                            
                        } catch (error) {
                            console.log(error);
                            return error;
                        }
                    });
                    Providers.globalProvider = provider;
                    Providers.globalProvider.setState(ProviderState.SignedIn);
 
and i am trying to call the People picker
<div>
            {gotAccessToken && <div><PeoplePicker {...props.pickerType === "person" ? { type: PersonType.person } :
                { ...props.pickerType === "group" ? { type: PersonType.group } : { type: PersonType.any } }} {...props.isPickerDisabled ? { disabled: true } : undefined}
                defaultSelectedUserIds={defaultPickerValue} selectionMode={props.selectionMode} selectionChanged={handleSelectionChanged} />
                {props.toShowSelectedPeople && <div>Selected People: <People people={people} /></div>}</div>}
            {!gotAccessToken && <Spinner label="Loading..." ariaLive="assertive" labelPosition="left" />}
        </div>
 
The accessToken i am getting from the asp.net web api,


with which i am able to call graph apis. in the asp.net core webapi.
i am using the same here, but it is not working.
this is the error I get when i try to do it
  1. error: {code: "InvalidAuthenticationToken", message: "Access token validation failure. Invalid audience.",…}
    1. code: "InvalidAuthenticationToken"
    2. innerError: {date: "2021-08-24T08:27:14", request-id: "494c6420-fedc-4314-b71f-2f8e188a38c1",…}
    3. message: "Access token validation failure. Invalid audience."
@Umag98 - Looks like your configuration is wrong for token validation "audience".
Could you please reverify & test it again.

@ChetanSharma-msft '
As I already have a accessToken, i can pass that right, or should i pass the assertion token from the teams ?

 

@Umag98 : Hello I have tried this with access token I got following this doc: Get access without a user

I tested with the snippet you shared and it worked fine. Could you please tell the endpoint you are using to get access token? Also, it would be better if you can share the whole request(by hiding the private information). Please go through this question to understand more about the error you got : 
Access token validation failure. Invalid audience. - Microsoft Q&A 

our endpoin is :https://login.microsoftonline.com/{0}/oauth2/token

{ "client_id", },
{ "client_secret", },
{ "scope", },
{ "resource", },
{ "grant_type", },
{ "requested_token_use", },
{ "assertion", }

@Umag98 : 

Hey,
I think you should use this endpoint
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
Please follow this:
Get access without a user -> Get an access token

Also you need these permissions : link

@Umag98, Let us know if you still facing any issue.
Is their any special need to change the end point as we are using the same endpoint to use graph api call.
No, token you get from this endpoint also works for all graph API.
Please make sure that permission are given to you App registration.
Can i know which are those permission.?

@Umag98 - Hello , 
I have shared Permission in previous comment - 


@HunaidHanfee-MSFT @ wrote:

Also you need these permissions : link


Please follow this link: People-picker - Microsoft Graph Permissions.
Please have a look, let us know if you have any query.
Thanks

Does this solve your issue?
-------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
Please debug the token - https://jwt.io/#debugger-io . check if you are getting the required permissions in it