Questions tagged as 'authorization'

1
answer

Place Authorization: Basic on api

I'm creating an API as I said, and I need to use Authorization: Basic KEY to send login and password via header. Unfortunately I have no concept header('Authorization: Basic dXNlcjpwYXNzd29yZA=='); This code I have to send and in...
asked by 08.08.2014 / 03:17
2
answers

How to catch Exception generated by a method whose access is not authorized by a given user profile

How can I send the user a message that the operation he wants to do is not allowed? I have in my View a button that calls a Javascript function <button id="btninicio" onclick="salvaApontamento();">Inicio</button> This sal...
asked by 13.07.2015 / 16:09
1
answer

Authorization Basic HTTRIO SPC / Delphi

Good morning everyone , I wonder if anyone could help me in the following situation: I'm doing an integration with the SPC / CDL web service, which requires a basic authentication (HTTP header). I need to do this authentication using H...
asked by 09.11.2016 / 12:38
1
answer

How to configure an Authentication and Authorization Server?

How to set up an authentication and authorization server like Google by Cookie, and then be able to make it available to ASP.NET MVC applications from the same group of web applications with the same user base? I've been trying to understand...
asked by 15.08.2016 / 16:34
1
answer

Rails CanCanCan - Questions about Roles table

Good afternoon, I have the following models: User.rb class User < ApplicationRecord # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable,...
asked by 18.05.2018 / 20:41
1
answer

User permissions calling all rules with each access

I have MyRoleProvider implemented and access works normally, if the logged in user does not have the registered rule it does not allow access. The problem is that with each access to an action with the authorization attribute it takes...
asked by 25.08.2014 / 22:27
1
answer

Do I need to use auth middleware in the controller if I use Laravel's Gates?

Is it safe to remove an authentication middleware from a controller if I have already set a Gate on Laravel? I did so: No AuthServiceProvider.php Gate::define( 'admin', function ( $user ) { return $user->cargo_id == '3'; } );...
asked by 30.10.2018 / 13:01
1
answer

Authorization via token with AngularJS

I saw that to set the 'Authorization' field of the header with Angular is used: $http.defaults.headers.common.Authorization = "Bearer " + token or $http.defaults.headers.common.Authorization = "Basic " + token What's the difference bet...
asked by 25.10.2016 / 15:38
1
answer

Manage or customize the user session in Spring-managed JavaSE application

I would like to know how to manage or customize the user session in the JavaSE application (GUI / Desktop / SWING / thinClient) managed by SpringSecurity ??! For example, how could I configure TimeOut in a JavaSE application ??! Here's the 'appl...
asked by 10.11.2017 / 03:40
2
answers

Pass Token by the header to each request AngularJS (Authorization)

I have the interface-factory.js file that is my factory app.factory('interfaceAPI', function ($http) { var _getInterface = function () { return $http.get("/api/interfaceapi/getall"); }; var _postInterface = function (objeto) { return...
asked by 16.03.2017 / 14:53