ReportPortal "Notification" From field is grayed out - reportportal

In report-portal (v4.2) the notifications From field is grayed out with a default value of "reportportal#example.com" set. I can't seem to find where to change it.
Screenshot: ReportPortal-Notification-Settings
is it a bug or me misunderstanding?

The same problem I faced, so I added email notification details using report portal api. Please find the below screenshot for your reference.
Report Portal API

As for today, it is only possible to update From field in 'Email notification' component via API call.
Please send
PUT http://host:8080/api/v1/project/{project_name}/emailconfig
RQ body should have next required parameters:
`{
"emailCases": [
{
"recipients": [
"<email_address_of_recipient>"
],
"sendCase": "ALWAYS"
}
],
"emailEnabled": true,
"fromAddress": "<email_address_from_Email_server_settings>"
}`
In RP v5 the field will be removed from UI.
Sender address will be inherited from Email server settings configuration (Administrative part).
https://github.com/reportportal/reportportal/issues/516

Related

Where can you find or how can you create a chrome extension key and place it in your manifest.json file?

Looking to implement Oauth2 in my Chrome extension
I have been researching how to implement oauth2 on a chrome extension. I have been stuck for quite some time. I eventually got information to use chrome.identity in my background.ts file.
Here is my manifest.json
...
"permissions": [
"identity"
],
"oauth2": {
"client_id": "855289137547-bd37ghe68neqevqs47esitvc99rb5f8d.apps.googleusercontent.com",
"scopes":["https://www.googleapis.com/auth/userinfo.email"]
},
"background": {
"scripts": [
"background.js",
"runtime.js"
]
},
...
Call the chrome.identity API
There is a method on the API that is called getAuthToken which I am trying to call. When I try to call this method I get the following:
// background.ts
chrome.identity.getAuthToken({ interactive: true }, (token) => {
// store token here
});
Error
Unchecked runtime.lastError: OAuth2 request failed: Service responded with error: 'bad client id: 855289137522-bd37ggg68neqevqs47esitvc99rb5f8d.apps.googleusercontent.com'.
I checked multiple times and I can confirm that that the id is the same as I my console developer credentials.
Maybe it needs a key in the manifest
I was assuming that I have to have a key in my manifest.json. So, I followed the documentation at the following link where it says to follow the steps:
At the Developer Dashboard, click Add new item.
Click Choose file and select the .zip extension directory and upload it.
Without filling in additional fields, select Save Draft and return to dashboard.
Find the extension under Your Listings and click on more info. From the popup, copy the public key and add it to the manifest inside the unzipped directory under the "key" field.
However, I looked everywhere but could not find the "more info" link or any other info leading me to a key.
Key is available in the new UI --> Package on left side menu --> Public Key
At of time of my post (August 2020), if you go to the Developer Dashboard, you will always be directed to the new UI, which doesn't contain the More Information section, which means you can't find the public key.
AFAIK there is no other way to get the public key. You can't substitute your application ID because it is a hashed version of the public key,
Look for the Welcome popup on the bottom left corner of the screen and click on opt out link in tiny font to revert to the legacy interface.

CAS Multifactor Authentication Provider Selection

I am working with cas-overlay-template project in version 6.1.4. I have implemented two mfa providers on my CAS, Google Authenticator and CAS Simple. Both are working, I have tested them separately and I have got the results I've expected.
Until now, I have been activating the mfa modifying the cas.properties file adding this properties: cas.authn.mfa.globalProviderId=mfa-gauth when I wanted to use Google, or cas.authn.mfa.globalProviderId=mfa-simple when I used the CAS itself.
Well, in CAS documentation is mentioned that is possible to enable a provider selection menu, if resolved more than one just by adding this propertie: cas.authn.mfa.provider-selection-enabled=true. So, my configuration is the following:
cas.authn.mfa.provider-selection-enabled=true
cas.authn.mfa.globalProviderId=mfa-gauth
cas.authn.mfa.globalProviderId=mfa-simple
But when I try to login with any user (I'm using the default one casuser:Mellon), CAS don't show me a menu in which I can select the following mfa provider, It directly goes to mfa-simple provider.
What am I doing wrong?
Well, in CAS documentation is mentioned that is possible to enable a provider selection menu, if resolved more than one just by adding this properties:
So far so good.
So, my configuration is the following:
That's the problem. You are not resolving/triggering more than just one provider. You start with mfa-gauth and then override it with mfa-simple. In CAS 6.1.x, the globalProviderId only accepts a single identifier. It's not a list or a container of any kind to accept more than one value. This has been addressed in the next coming release.
At the moment, to resolve more than one provider you will need to assign the MFA providers to a registered service definition. Like so:
{
"#class": "org.apereo.cas.services.RegexRegisteredService",
"serviceId": "^(https|imaps)://.*",
"name": "Example",
"id": 1,
"description": "This service definition defines a service.",
"evaluationOrder": 1,
"multifactorPolicy" : {
"#class" : "org.apereo.cas.services.DefaultRegisteredServiceMultifactorPolicy",
"multifactorAuthenticationProviders" : [ "java.util.LinkedHashSet", [ "mfa-duo", "mfa-gauth" ] ]
}
}
This means, provider selection can be enabled on a per-application basis. Alternatively, you can write a small groovy script to return more than one provider back to CAS, allowing the selection menu to display the menu items.
Read this post for full details.

Microsoft Teams Graph API : Add Tab to teams channel API failing in V1.0 but working in Beta for built in tab types

Below is the request for adding web tab.
1)API ->
POST - https://graph.microsoft.com/v1.0/teams/{teamID}/channels/{channelID}/tabs
2)Body ->
{
"name":"[TabName]",
"teamsAppId":"com.microsoft.teamspace.tab.web",
"configuration":
{
"contentUrl":"[WebURL]",
"websiteUrl":"[WebURL]"
}
}
3)Error->
"code": "InvalidRequest",
"message": "The navigation bind for the teamsApp was missing in
request."
Tabs API is said to be GA already hence I'm posting this question.
GA Announcement link :
https://developer.microsoft.com/en-us/microsoft-teams/blogs/better-organize-and-automate-the-microsoft-teams-experience-with-the-availability-of-the-microsoft-graph-apis/
Please help me resolve this issue.
Please find the solution below.
As mentioned by Nick in the above answer V1.0 has teamsApp property which can be used to set tab types.
In case of built in tab types ,set "teamsApp#odata.bind" property to "https://graph.microsoft.com/beta/appCatalogs/teamsApps/[Built In tab Id]"
Example Website tab, https://graph.microsoft.com/beta/appCatalogs/teamsApps/com.microsoft.teamspace.tab.web
Refernce: https://learn.microsoft.com/en-us/graph/teams-configuring-builtin-tabs, https://developer.microsoft.com/en-us/graph/blogs/30daysmsgraph-day-27-use-case-create-a-team/
It's not a great error message. The root cause is that there's no teamsAppId property in v1 -- instead there's a teamsApp property. (Which is also there in beta, btw) See https://learn.microsoft.com/en-us/graph/api/teamstab-add?view=graph-rest-1.0 for details.

Passing parameters in SpagoBI REST 2.0

I wanted to use SpagoBI 2.0 REST API:
http://docs.spagobi.apiary.io/#reference
Everything seems to be fine, reports are running fine on SpagoBI server, I can get all documents via:
http://spagobi-url/SpagoBI/restful-services/2.0/documents/
I can get subreport without parameter via:
http://spagobi-url/SpagoBI/restful-services/2.0/documents/document_label/content
But I don't know how to pass parameter to run subreport with parameter?
Any clues?
Thanks in advance!
your solution is fine, but you can simplify the request body with parameters information: you just need to specify the parameters' URL name and their value, for example:
[
{
"urlName": "Position",
"values": [
"Store Manager"
]
}
]
Pay attention to the fact that "subreport" means a report that is included into another bigger one, therefore your request was not so clear to me: I understood you were trying to execute just one "regular" report (that was not including other reports), is that right?
Hope this helps.
Best regards.
Davide

FIWARE Orion Notification

We had Fiware Orion running on local instance - we had issue with notification received.
We need a way to append an identifier with callback url like http://localhost:1028/orion_callback.php?car_id=car_1 or get some data along with call back as Post/Get data.
How do we identify notification recieved for this attribute change ?
You can identify the subscription to which a notification belongs (thus, related with an entity/attribute change) by the subscriptionId field in the notification payload body.
If the question is about adding query parameters to notification URL (i.e. car_id=car1 in your example) you can use custom notifications in NGSIv2.
Based in the example in the question and assuming that car1 refers to entity id you could use something like this:
"httpCustom": {
"url": " http://localhost:1028/orion_callback.php",
"qs": {
"car_id": "${id}"
}
}
Have a look to "Custom Notifications" section in the NGSIv2 specification for details.