Title: Need sample ClientCredentialProvider in microsoft-graph · Issue #18 · microsoftgraph/msgraph-sdk-java-auth · GitHub
Open Graph Title: Need sample ClientCredentialProvider in microsoft-graph · Issue #18 · microsoftgraph/msgraph-sdk-java-auth
X Title: Need sample ClientCredentialProvider in microsoft-graph · Issue #18 · microsoftgraph/msgraph-sdk-java-auth
Description: Hi , Our App registered in Azure & we have CLIENT_ID, SCOPES, CLIENT_SECRET, TENANT_GUID, NATIONAL_CLOUD While implementing below usecase . Question1 The class is missing ClientCredentialProvider in microsoft-graph Do we need create Clie...
Open Graph Description: Hi , Our App registered in Azure & we have CLIENT_ID, SCOPES, CLIENT_SECRET, TENANT_GUID, NATIONAL_CLOUD While implementing below usecase . Question1 The class is missing ClientCredentialProvider i...
X Description: Hi , Our App registered in Azure & we have CLIENT_ID, SCOPES, CLIENT_SECRET, TENANT_GUID, NATIONAL_CLOUD While implementing below usecase . Question1 The class is missing ClientCredentialProvid...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java-auth/issues/18
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need sample ClientCredentialProvider in microsoft-graph","articleBody":"Hi ,\r\n\r\nOur App registered in Azure & we have CLIENT_ID, SCOPES, CLIENT_SECRET, TENANT_GUID, NATIONAL_CLOUD\r\nWhile implementing below usecase .\r\n**Question1** \r\nThe class is missing ClientCredentialProvider in microsoft-graph \r\nDo we need create ClientCredentialProvider ,if yes please provide sample for oAuth \r\n\r\npublic class ClientCredentialProvider implements IAuthenticationProvider\r\nor \r\nelse are we missing any dependency ? \r\n\r\n**Details** \r\nI am trying to use Graph API to know availability of meeting rooms ,creating meeting room on our org cloud active directory . I am referring below articles as per our auth scenario \r\n[ https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Java#ClientCredentialsProvider](url)\r\nClientCredentialProvider authProvider = new ClientCredentialProvider(\r\n clientId,\r\n scopes,\r\n clientSecret,\r\n tenant,\r\n endpoint);\r\n\r\nIGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();\r\n\t\t\r\nI have added below dependencies \r\n\r\n\u003cdependency>\r\n \u003cgroupId>com.microsoft.graph\u003c/groupId>\r\n \u003cartifactId>microsoft-graph\u003c/artifactId>\r\n \u003cversion>1.6.0\u003c/version>\r\n \u003ctype>pom\u003c/type>\r\n\u003c/dependency>\r\n\u003cdependency>\r\n\t\u003cgroupId>com.microsoft.graph\u003c/groupId>\r\n\t\u003cartifactId>microsoft-graph\u003c/artifactId>\r\n\t\u003cversion>1.2.0\u003c/version>\r\n\u003c/dependency>\r\n\r\n**Question2** \r\nif \"CLIENT_ID, SCOPES, CLIENT_SECRET, TENANT_GUID, NATIONAL_CLOUD\" authentication details expires or changed \r\nWhat is best practice to store these details to avoid redeployment \r\nFor example Config file or Admin screen (UI) to store in DB instead of hard-coding in java code ?\r\n\r\n\r\n\r\nRegards,\r\nShowkath.\r\n","author":{"url":"https://github.com/nshowkath","@type":"Person","name":"nshowkath"},"datePublished":"2019-08-17T03:12:22Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java-auth/issues/18"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:648c96bf-3a30-6613-6f29-3db2ec75eb90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D03C:24AF5E:17B3F82:1ECACC9:6B051352 |
| html-safe-nonce | 6c86b3168889a7b89422ee9471e375417b441e4d0f28f22bbafae1a2ee6f0675 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDNDOjI0QUY1RToxN0IzRjgyOjFFQ0FDQzk6NkIwNTEzNTIiLCJ2aXNpdG9yX2lkIjoiNjc5OTY4NDc0NzU2MTA3OTYzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4d5603300aa4d96ba42c14941e0fcc6394244f17bbafede763100d48f9688eb9 |
| hovercard-subject-tag | issue:481841023 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java-auth/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45272eb7013160f96a8f9fe3596371088d9ce34479737fac45c7061df6b02517/microsoftgraph/msgraph-sdk-java-auth/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45272eb7013160f96a8f9fe3596371088d9ce34479737fac45c7061df6b02517/microsoftgraph/msgraph-sdk-java-auth/issues/18 |
| og:image:alt | Hi , Our App registered in Azure & we have CLIENT_ID, SCOPES, CLIENT_SECRET, TENANT_GUID, NATIONAL_CLOUD While implementing below usecase . Question1 The class is missing ClientCredentialProvider i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nshowkath |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java-auth git https://github.com/microsoftgraph/msgraph-sdk-java-auth.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 166441552 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java-auth |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 166441552 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java-auth |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width