ContributionsMost RecentMost LikesSolutionsRe: Error with Oauth 2.0 Client Credentials workflow I am using that method for the epoch time and I am passing sha512 in the body when making the call. Maybe I have something incorrect in my headers or body? const res = await fetch(tokenUrl, { method: "POST", headers: { "Content-Type": "application/json", nonce: nonce, }, body: JSON.stringify({ client_id: clientId, client_secret: clientSecret, redirect_uri: redirectUri, grant_type: "client_credentials", cc_hash: ccHash, hash_algorithm: "sha512", }), }); And just for reference, here are some example values of what my epoch time, nonce, and cc hash are generating as (these are old values from earlier this week so I should be fine posting them here). I have also double checked that my client id, client secret, and shared secret key are all correctly passed as well. epoch time in minutes: 28888867 nonce: 6b6ba9ada7073749127d628bbdb5c7e4 cc hash (using sha512): 7898dac2f7fb09297bda0f13235ee29596a091ff4a63193a023e3336435f5f5c28a3f5bfe6992ed29383b1cc2fe032876c56f84fb3c99b281595873438dd0a1b Error with Oauth 2.0 Client Credentials workflow I'm trying to authenticate an api call in a typescript app using the oauth 2.0 client credentials workflow and I'm running into issues, I believe, with generating the CC Hash for this. This is for Community Classic. I have verified that I have the correct client id, client secret and shared secret key and that they're being pulled in correctly in my code. Not sure what I'm missing, but this is the error I see when I try to authenticate: {"error":"Authorization or API call failed","details":"Failed to obtain access token. Status: 403. Response: {\"status\":\"error\",\"message\":\"cc_hash is invalid.\",\"data\":{\"type\":\"error_data\",\"code\":214,\"developer_message\":\"The decryption failed. ccHash is Invalid\",\"more_info\":\"\"},\"metadata\":{}}"} Here's the relevant part of my Typescript code that's generating the CC Hash. Not sure if something is formatted incorrectly or what's not being generated correctly or causing it to return an invalid cc hash function generateCCHash(clientId: string, clientSecret: string, sharedSecretKey: string): string { try { const epochTimeMinute = getEpochTimeMinute(); const nonce = generateNonce(); const strToHash = `${clientId}:${clientSecret}:${nonce}:${epochTimeMinute}`; console.log("String to hash:", strToHash); const hash = crypto.createHash('sha512'); hash.update(strToHash, 'utf8'); hash.update(sharedSecretKey, 'utf8'); const hashResult = hash.digest('hex'); console.log("Generated hash (cc_hash):", hashResult); return hashResult; } catch (error) { console.error("Error generating CC-Hash:", error); throw error; } } Re: Error message when adding a query to handlebars component (Aurora) Just updated my SDK to v 24.8.1 and still getting the same issues unfortunately Re: Error message when adding a query to handlebars component (Aurora) I double checked and ran the SDK install again and it's showing I'm on Node 18.20.4 and SDK v 24.4.4 Error message when adding a query to handlebars component (Aurora) I'm trying to follow the documentation on creating a custom handlebars component in Aurora and I'm running into a weird error that I can't figure out. I have added the component via a GraphQL mutation and it works fine with some basic HTML, but once I try to follow this doc: https://developer.khoros.com/khorosauroradevdocs/docs/adding-graphql-queries-and-fragments-to-a-custom-handlebars-component I'm running into some issues: There's no docs (at least not that I've found) that explain how to get the bearer token or where the file should be stored or how that works when using GraphQL to upload a GraphQL file to use in a component (see here: https://developer.khoros.com/khorosauroradevdocs/docs/adding-graphql-queries-and-fragments-to-a-custom-handlebars-component#uploading-a-graphql-file-for-a-component-via-graphql) and I've been unable to figure out how to do this on my own. I've tried a few things with no success. If I try to follow the steps to add it manually, then I run into some strange errors. I'm running the SDK via VS code terminal which is working fine, but as soon as I follow the steps to add a "queries" folder and .graphql file to that folder within my component folder (e.g., components/myComponent/queries/myComponent.query.graphql) then I get an error in the VS Code terminal that says ""message": "The Content-Type header included with the request is not allowed (it should be either application/json or application/xml)."," and in my browser console when I try to load my custom component is: "Unable to fetch component to render for component id custom.widget.releaseTkbSidebar: Exception while fetching data (/component/render) : com.github.jknack.handlebars.HandlebarsException: releaseTkbSidebar:1:18: lithium.coreapi.components.ComponentTemplateApplyException: unable to apply template: releaseTkbSidebar: no query found matching the name 'releaseTkbSidebarQuery'. releaseTkbSidebar:1:18" Anyone know what's going on here? I've follow the dev docs and examples exactly (or as close as I can given that they've proven to be very inaccurate) and I'm out of things to test through trial and error. Here's what I have in my .hbs file for my custom component: <h2>Test!</h2> {{#gql "releaseTkbSidebarQuery"}} {{#with data.messages.edges as |edges|}} {{#each edges}} {{#with node as |message|}} <p>{{message.subject}}</p> {{/with}} {{/each}} {{/with}} {{/gql}} And here's what my .graphql query file looks like query releaseTkbSidebarQuery { messages { edges { node { id customFields subject } } } } My file structure looks like this Any help would be very much appreciated! Does anyone know how to change the display title of Custom Fields in Aurora? So I've figured out custom fields in Aurora using the new GraphQL API and I have a few test options in our stage instance, but I'm wondering if there's a way to change what displays in the UI. I've read through the dev docs on text key overrides and all the docs on custom fields and I haven't found anything about the display title for these in the UI. I'm guessing it has to do with either a form override or a text key override, but the docs on both are pretty sparse. Wondering if anyone else has figured this out yet. Thanks! Here's an example of what I'm talking about. We have a custom field on the user entity called "My School" and "myTest" and in the UI it shows "Value of [custom field name]". That's what we'd like to change, if at all possible. SolvedRe: Can someone walk me through authenticating and using Postman with Aurora? Perfect! I had another unrelated issue in Postman that was also causing me some issues, but I finally got it working this morning! Thanks so much. Whoever updates your developer docs may want to include this info in those docs for Aurora. Thanks again, MattV ! Re: Can someone walk me through authenticating and using Postman with Aurora? Thanks MattV but there seems to be one issue with the authentication that I can't quite sort out. On line 28 for 'Authorization' it's using the htaccess variable but you never specified what that should be in the environment variables. Can someone walk me through authenticating and using Postman with Aurora? I'm a bit of a newbie when it comes to GraphQL and Postman and I'm struggling to work through the dev docs when it comes to authenticating and setting up the basics in Postman for testing in API calls in Aurora. We're looking ahead to migration and want to start getting familiar with basic API calls. Has anyone successfully got Postman and Aurora working? Is anyone willing to walk me through the bare minimum basics of getting this set up to authenticate into our Aurora instance and run a basic GraphQL call? I'm finding the dev docs pretty lacking currently so I'm turning to the expertise of the developer community here hoping someone has already figured this out. Or, if Khoros is reading this, can we have another Developer Webinar where we can walk through this? Or is this something you can offer through training or update the docs with more details? We've reached out to our CSM to see if we can get some 1:1 training but so far it doesn't look like that's an option right now. SolvedRe: Requesting feedback on our Dev Lab! A big +1 to everything allensmith81 mentioned in his comment. I think it was nice to see the roadmap and ideas behind building Aurora the way it's built, but having more of an actual "lab" would have been nice. I'm still a bit of a n00b so some of this is intimidating. I'd love to have labs similar to what Allen and others have suggested, a bit of theory/best practices on Aurora and then some demonstration and working together or sharing ideas and code snippets. I did appreciate getting a high level overview of how Aurora works and how to navigate the dev docs. I also enjoyed the breakouts to see how things are built. Another suggestion is providing some pre-built open source components built using best practices that we can then use as a starting point in the labs and "hackathons". This would also provide some easy references for documentation and best practices. Overall, this was an awesome event to attend and I hope to see more similar gatherings and an evolution of these types of events. Some people may prefer just the "product marketing style"/overview style meetings while others would prefer the hands-on build it together style meetings. I did notice a pretty big drop-off in attendance when we broke into smaller groups, so breaking these into two different webinars may be helpful.