authorization

Accessing TRAKT API from Delphi - issues with Bearer authentication [SOLVED]

痴心易碎 提交于 2020-12-13 03:10:50
问题 Using TOauth2Authenticator, TRESTClient, TRESTRequest, TRESTResponseDataSet, TRESTResponse, TFDmemtable and a TDataSource have I managed to connect to the Trakt API, and authenticate my application and get a code in return and lastly use that code to get a token. So now I should be able to list the movies with the below code. RESTClient1.BaseURL := 'https://trakt.tv/'; RESTRequest1.Resource := 'calendars/my/movies/{start_date}/{days}'; RESTRequest1.AddParameter('Authorization','Bearer ' +

ASP.NET Core Custom Authorization

随声附和 提交于 2020-12-12 09:37:52
问题 I need to implement role based authorization on a .NET 5 API but the thing is that we don't want to decorate all the controllers with attributes and a list of roles, because all that configuration will come from either a config file (JSON) or an external service (TBD), in a way that roles will be mapped to controllers and actions and we would want to have something that centralizes all this logic, in a similar way we did before with Authentication Filters and Attributes. I've been reading

how to get correct response from Bandcamp api?

半世苍凉 提交于 2020-12-08 02:30:00
问题 I am developing an android app and I want to get the correct response from Bandcamp API but it is giving error below and I am calling the following ending point https://api.bandcamp.com/api/band/3/search?key=snaefellsjokull&name=metallica&callback=? and I am following documentation I want to know where I am making mistake and what I have to do get correct output. 来源: https://stackoverflow.com/questions/59853231/how-to-get-correct-response-from-bandcamp-api

how to get correct response from Bandcamp api?

谁说胖子不能爱 提交于 2020-12-08 02:29:47
问题 I am developing an android app and I want to get the correct response from Bandcamp API but it is giving error below and I am calling the following ending point https://api.bandcamp.com/api/band/3/search?key=snaefellsjokull&name=metallica&callback=? and I am following documentation I want to know where I am making mistake and what I have to do get correct output. 来源: https://stackoverflow.com/questions/59853231/how-to-get-correct-response-from-bandcamp-api

how to get correct response from Bandcamp api?

柔情痞子 提交于 2020-12-08 02:29:43
问题 I am developing an android app and I want to get the correct response from Bandcamp API but it is giving error below and I am calling the following ending point https://api.bandcamp.com/api/band/3/search?key=snaefellsjokull&name=metallica&callback=? and I am following documentation I want to know where I am making mistake and what I have to do get correct output. 来源: https://stackoverflow.com/questions/59853231/how-to-get-correct-response-from-bandcamp-api

how to get correct response from Bandcamp api?

若如初见. 提交于 2020-12-08 02:29:33
问题 I am developing an android app and I want to get the correct response from Bandcamp API but it is giving error below and I am calling the following ending point https://api.bandcamp.com/api/band/3/search?key=snaefellsjokull&name=metallica&callback=? and I am following documentation I want to know where I am making mistake and what I have to do get correct output. 来源: https://stackoverflow.com/questions/59853231/how-to-get-correct-response-from-bandcamp-api

sending POST request to FCM not accepting authorization header in angular

无人久伴 提交于 2020-12-07 15:59:40
问题 So I'm trying to use FCM to send notifications from Angular web application to mobile app using Firebase cloud messaging.. but I'm getting 401 response "the request was missing an Authentication Key", I tested the the same request on POSTMAN and it was working but on angular it is not.. here is my my code : pushNotification(title , body){ this.http.post('https://fcm.googleapis.com/fcm/send' , { header: { 'Content-Type': 'application/json', 'Authorization' : 'key='+ environment.cloudMessages

sending POST request to FCM not accepting authorization header in angular

Deadly 提交于 2020-12-07 15:50:02
问题 So I'm trying to use FCM to send notifications from Angular web application to mobile app using Firebase cloud messaging.. but I'm getting 401 response "the request was missing an Authentication Key", I tested the the same request on POSTMAN and it was working but on angular it is not.. here is my my code : pushNotification(title , body){ this.http.post('https://fcm.googleapis.com/fcm/send' , { header: { 'Content-Type': 'application/json', 'Authorization' : 'key='+ environment.cloudMessages

HttpClient Authorization Header Invalid Format

南笙酒味 提交于 2020-12-05 12:14:44
问题 When I try to make a GET request with the address and Authorization value below, I have no problems. Address: http://example.com/xyz.svc/branches/?latitude=0&longitude=0&range=20000 Header Key: Authorization Value: example;foo When I try it with HttpCLient I get format invalid error for the authorization header value This is how I tried HttpClient client = new HttpClient(); string latitude = "0"; string longitude = "0"; string range = "2000"; string uri = "/xyz.svc/branches/?latitude=0

Not able to watch Admin Users Directory using `google-admin-sdk`

纵然是瞬间 提交于 2020-11-24 22:52:36
问题 I am trying to connect to the G-Suite's User directory using the google-admin-sdk. I am using an API Key for authorization and I am not able to reach a successful execution. Here is the code snippet that I'm using: import { google } from 'googleapis'; import uuid from 'uuid/v4'; const API_KEY = 'my api key goes here'; google.admin({ version: 'directory_v1', auth: API_KEY }).users.list({ customer: 'my_customer', maxResults: 10, orderBy: 'email', }, (err, res: any) => { if (err) { return