Yes, they are supported for OAuth
Hey thanks for replying u am facing 401 on oauth in postman and 404 in the agent I have deployed my schema to.
I recommend that you read the How to ask a good question thread to understand the bare minimum level of information you’ll need to provide for someone to be able to stand a chance assisting you with your problem.
Hi, my problem is that I want to use the above-mentioned APIs in the schemas to agents in the open api format. Now when I set the authentication as - ouath and add the following values in the oauth and set up my agent , it fails with the request 404.
This is my schema-
openapi: 3.1.0
info:
title: Atlassian Confluence API
version: 1.0.0
servers:
- url: https://mg.atlassian.net/wiki/api/v2/rest
- description: Confluence Server
paths:
/spaces:
get:
operationId: getSpaceInformation
summary: Retrieve space information
parameters:
- in: query
name: keys
required: true
schema:
type: string
description: The key of the space to retrieve
responses:
‘200’:
description: Success
content:
application/json:
schema:
type: object
properties:
id:
type: string
security:
- bearerAuth:
/pages:
post:
operationId: createPage
summary: Create a new page
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
spaceId:
type: string
status:
type: string
title:
type: string
parentId:
type: string
body:
type: object
properties:
representation:
type: string
example: storage
value:
type: string
required:
- spaceId
- status
- title
- body
responses:
‘200’:
description: Page created successfully
security:
- bearerAuth:
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
So the above failed with 404.
Now to test the apis above I used postman. In the postman also I got the 401 error. Thats why I asked if the apis support oauth or not?
Okay even my problem which I mentioned above has a post dedicated to itself.
I am using postman and setting things up as mentioned in this documentation- Oauth 2.0 Configuration for Confluence | Confluence | Atlassian Documentation
I have the space also with the key=mansidemo2
Sorry, but I’m totally lost as to what,exactly, you’re trying to do or acheive. I have no idea what these ‘agents’ are, what they are made with, what they do or how to configure them. I have no idea why you’re pasting in parts of what looks like an OpenAPI Swagger file and referring to it as “my schema” or what the relevance of that is. I don’t know why you’re referencing documentation for configuring the OAuth 2.0 settings of Confluence SERVER / DATA CENTER, which has nothing to do with Confluence CLOUD.
To me it seems like you’re just experimenting with random stuff.
I can’t be of any further assistance to you.
Good luck.