Questions tagged [roles]

0

votes
0

answer
4

Views

Chef master role dependency override

I have following chef setup: master role sub-role1/2 contained within previous one { 'name': 'master-role', 'chef_type': 'role', 'run_list': [ 'role[sub-role1]', 'recipe[sub-role2]' ] } { 'name': 'sub-role1', 'chef_type': 'role', 'run_list': [ 'recipe[a_cookbook::recipe1]', 'recipe[a_cookbook::reci...
Matúš Zábojník
1

votes
2

answer
1.1k

Views

Azure cloud service network bandwith

I have an Azure web role on 3 Standard_A3s. The web api has a heavy load and it transfers lot of large objects. I am trying to find out at what RPS we might hit network bandwith limit. Is there a way to find this out.
Hari Subramaniam
1

votes
2

answer
65

Views

What is the best way to communicate authorization between a client and REST API?

I'm developing an application will use AngularJS for the front-end, communicating to a REST service on the backend, implemented as J2EE/Spring. The back-end services are secured through role-based authorization. In the front end of the application I would like to have the UI only allow users to per...
roxyblue
1

votes
1

answer
72

Views

Symfony security users without any role

I was looking at the symfony security dynamic roles instructions at knplabs page. It says 'Second, there's just one rule that we need to follow about roles: every user must have at least one role. Otherwise, weird stuff happens.' Does anybody know exactly what happens to users which has no role? I a...
Evren Yurtesen
1

votes
0

answer
779

Views

Keycloak role-ldap-mapper sync

I am struggling with the keycloak role-ldap-mapper. We have an Active Directory Service internally where Users can ask for roles. Roles are assigned/removed by another tool and saved into the memberOf Attribute in AD. Keycloak imports the roles correctly at the users first login, but somehow when th...
user2699706
1

votes
0

answer
477

Views

hasRole() and hasAuthorities() blocking every user

So I have a Spring boot application with a login. In my application there are three different roles: ROLE_ADMIN, ROLE_USER, ROLE_TEACHER When someone registers an account, default role is USER. UserController.java @RequestMapping(value = '/registration', method = RequestMethod.POST) public String re...
moffeltje
1

votes
2

answer
909

Views

spring security UserDetailsService with specific table Role

I'm creating an app where I must use Spring Security login. It's standard login/logout, and I found many tutorials how to create it. What is not standard - is a table role in Database. I can't change Database, I can just use it. I made right entities for user and role, but I can't get the way, how t...
Stephan Korsakov
1

votes
1

answer
25

Views

routeprovider resolve not restricting access with parse.com

I want to restrict page to only Administrators. I am finding that my auth factory is not completing before resolve returns answer to route. When i follow/watch the code path page gets loaded before the factory finishes. I am thinking i need to do better with promises and /or '.then()'. Any help wou...
Morgan Hayes
1

votes
1

answer
400

Views

Change user role if checkout custom checkbox is checked in WooCommerce

I'm trying to add a custom function to my child-themes functions.php file where a checkbox is added to the bottom of the billing details form on the checkout page. This checkbox asks the customer if they'd like to become a wholesale customer. function customise_checkout_field_with_wholesale_option...
jvandelaar
1

votes
1

answer
97

Views

What is `RoleEnvironment.GetLocalResource` equivalent for python on Azure CloudService?

I'm running a python website, and want to use the LocalStorage on the WebRole of Azure CloudService. And I can't get the path of the storage but using RoleEnvironment.GetLocalResource(name_of_storage) in C#. So what is the equivalent version of RoleEnvironment.GetLocalResource in Python?
Wizmann
1

votes
0

answer
37

Views

Azure Web Role recycles, can't load entry point “ExecuteAsync()” in ChallengeResult.cs

So, this has worked like forever (and continues to work just fine in emulator). When I spin up my classic cloud service in Azure I get the error below. ExecuteAsync() is in the web role, in Results/ChallengeResult.cs (a folder I hadn't even noticed until now). Role entrypoint could not be created: S...
Barry Briggs
1

votes
1

answer
1.3k

Views

How to create USER roles/permissions with MongoDB and Nodejs?

I have multiple Users in my MongoDB database and I want to create permissons/roles. Lets say if i have the permisson/role: Admin - only than I can see 'a blue colored button or whatever else on the website' but only if I have the right permissions for that. So the point is, I dont know, how to set u...
dsds
1

votes
0

answer
156

Views

WorkerRole throws 'System.Net.Sockets.SocketException' in System.dll

I put id for finding file from Web Role to Worker Role using a socket, then I await when work is done, but socket throws an AggregateException with System.Net.Sockets.SocketException when process work in Worker Role. Log: Exception thrown: 'System.Net.Sockets.SocketException' in System.dll Exceptio...
Maksym Suprunenko
1

votes
0

answer
286

Views

user role management for asp.net core razor

Working on Asp.net Core razor page project and I need to integrate role/permission management system in the project. The Project has 3 component. MVC (web interface), WebAPi (separate project, to access DB), and database. So I have 2 challenge to manage. The first show interface to the user if they...
S. Aziz Kazdal
1

votes
0

answer
19

Views

Do @Session(roles=..) for method replace or append to the class roles?

If I am writing an API interface class, with imports: import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; When I am writing an annotation before a class: @Session(roles = { Role.ROLE_ADMINISTRATOR }) And another one before a method: @Session(roles = { Role.ROLE_USER }) Will the...
Gangnus
1

votes
2

answer
492

Views

Asp net core MVC Authorization with Active Directory

In an Asp net core MVC application, I use Active Directory for automatic login like this : this.user = UserPrincipal.FindByIdentity(this.context, Environment.UserName); and I get groups of the user with this : public List GetUserGroups() { List groups = new List(); foreach(GroupPrincipal gr in user....
Alexis
1

votes
0

answer
41

Views

How can I switch an existing Azure web-role from http over to https

I have a working Azure web role which I've been using over an http endpoint. I'm now trying to switch it over to https but struggling mightily with what I thought would be a simple operation. (I'll include a few tips here for future readers to address issues I've already come across). I have creat...
NeilMacMullen
1

votes
1

answer
314

Views

Azure cloud service cannot read from web project's web.config

The config value is stored in the Web.config. When I build the web project, the Web.config gets copied to the build folder as {ProjectName}.dll.config. Running the web app locally works fine, the config value gets read without problem using ConfigurationManager.AppSettings['{key}'];. When I build th...
Tobias
1

votes
0

answer
745

Views

Discord Py can't figure out how to add roles

I've looked everywhere and people just tell me to use the documentation and that doesn't help, I've already got on_message(message) defined so I can't use a member parameter and I want people to be set to a certain role when they say a keyword here's what I got but it doesn't work: if message.conten...
JJP_SWFC
1

votes
1

answer
694

Views

How can I make a discord bot create a role based on what the person types in the command

I am new to coding and making discord bots, I have gotten it to make a role using a command but I can't figure out how to make it make a role based on what the person puts in the command. For example, !rolecreate test, if I typed that I want it to make a role called test and give it to me. If it hel...
okpls
1

votes
1

answer
158

Views

How to log in the same database from two different PostgreSQL roles using Odoo?

What I want to do is to login with differents users into the same PostgreSQL database. I need to get this done due to some circunstances that I am not going to describe here (too long). First try I have read this documentation page about PostgreSQL Roles. So I have created both users and inherit the...
ChesuCR
1

votes
1

answer
109

Views

WebSphere administrative role checking within servlet context

I am simply trying to check whether a given user has a given WebSphere administrative role, within a Java servlet. The idiom: HttpServletRequest#isUserInRole ... works for non-administrative roles, and the iscadmins administrative role defined in this documentation page. However, all other roles i...
Mena
1

votes
1

answer
24

Views

How to implement Hierarchy of Roles/designations in an organization & transact between them in JAVA

I know Java & currently I’m learning Spring (have learnt Core part till now). I want to implement a Diary System where details of the diary or letter or file is noted with each passing node, for better accountability & transparency. But my problem is that I’ve to also create hierarchy of users,...
Dev
1

votes
1

answer
33

Views

Parameter error in Azure worker role instance in server explorer

I have an Azure worker role deployed. I wanted to attach remote debugger in it. But I cannot select the Azure worker role instance from the server explorer. I am getting the error extensionconfiguration null. see attached screenshot. The closest reference I got was another link that states the same...
P basak
1

votes
0

answer
63

Views

WordPress - Ultimate Member - allow a particular profile field edit for one role and doesn't allow for another

I'm a newcomer in the world of wordpress and ultimate member plugin and I need help of those who have more experience. I know that it's possible to define the visibility for a profile field as for edit, view or both and I know that it's possible to define the privacy for a field for particular roles...
user10221776
1

votes
2

answer
437

Views

AWS IAM - Who is the Principal in the context of Assume Role?

Objective Clear the confusion of what/who is the principal of an action being executed in AWS with assuming an IAM role. Background A IAM role has the tab of Trust relationships that defines who can assume the role. It is described as in JSON. statement { sid = '1' effect = 'Allow' principals { i...
mon
1

votes
0

answer
42

Views

Name “roles” is not defined in autorole event

This bot is for leveling and roles. I'm trying to figure out why my auto role code isn't working. import random import asyncio import aiohttp import json import os import discord import codecs from discord.ext import commands from discord import Game from discord.ext.commands import Bot from discord...
Pixelilli
1

votes
1

answer
101

Views

r is undefined, obtain all roles user has

I am trying to make when the user posts the command, they are able to swap between roles at will. The roles are simply colors for the server I am making it for. The part that is having issues is the first part before the 'var args' part. Basically, the part that finds all roles the user is currently...
Zarvix
1

votes
0

answer
20

Views

Wordpress Custom Capability not assigned

I created a custom role and a custom capability. The custom capability is also to be added to the administrator role. However, neither of these roles receive that capability. In the activation function: add_role( 'x_manager', 'X Manager', array( 'read' => true ) ); $role = get_role( 'x_manager' ); $...
Dennis Eckmeier
1

votes
1

answer
35

Views

Restrict to only one item in cart for specific user roles in Woocommerce

I've made a Woocommerce giftshop for a client. Their customers are other business that let their employees select their gift through the webshop. Each business have 1 login that all employees use. As of right now, every user is only allowed 1 item in their cart. If another product is selected, it wi...
SPECIFX
1

votes
0

answer
18

Views

Using sessions for role based auth

I am playing around with sessions to authenticate users and run functions. I am using sessions between two servers. I describe the process of what I am doing below. 1) With Server 1 pass username and password to the main Server 2. public function get_session_auth($username,$password){ $resultArray...
Masnad Nihit
1

votes
0

answer
26

Views

Salesforce Roles

I have roles hierarchy in place. the new requirement is to set up permission to specific external users so they will not be able to see other users records. the sharing setting for the object is set to Private. I cannot create a user without a role. Other users should be able to see other users (i...
Chen
1

votes
1

answer
16

Views

Store Roles and Authorizations in a static variable for speed optimization in asp.net

I have been debating myself with the idea of storing the application roles and authorizations in a static variable that could be used by all sessions. I know there is the possibility of concurrency issues. But this information is very rarely ever changed, only by administrators, and most of the time...
Ricardo Melo
1

votes
2

answer
90

Views

Values being improperly communicated with bot and mysql database

So I'm working on a command that allows you to spend points to rank up. These points are stored in a table called 'points', in a database with the same. Each row contains the user's discord snowflake ID, and how many points they have. Expectation when you run for example !rankup : Checks what level...
Jake Henderson
1

votes
1

answer
30

Views

Avoid product backorders for “customer” user role in Woocommerce

I have two types of roles, normal customer and wholesale customers. The wholesale customers should be able to place backorders and the normal customers are not allow to place backorders. I am not a php developer and my code is not working yet, please help me out to make it work: add_filter( 'woocomm...
Jan-Paul
1

votes
1

answer
160

Views

Spring Security @PreAuthorize based on custom boolean property value [closed]

I have an application where the user enters custom roles name and privileges. Example, the user can create a role named 'Human Resources' that has the following properties : showDashboard = true; showSuppliers = false; showEmployees = true; I want to restrict getSuppliers service based on the showSu...
androniennn
1

votes
0

answer
25

Views

Repeated user on SQL Server Cube

I'd like to know why it is possible to have repeated users on a SQL Server role membership. More specifically in a cube. The cube I'm talking about already existed when I started working here and it has the same user added to id twice. It even has the same SID. username S-1-5-21-2977299124-187646216...
Erika Madeiros Silva
1

votes
1

answer
293

Views

I can't get the request value from input value in laravel

UPDATE: So i just found out that $request can only get the input name so i had to change the radiobox form so that the input name must be different So i'm working with roles and permissions in laravel and i'm using spatie package for roles and permission https://github.com/spatie/laravel-permission...
Ardit Imeri
1

votes
0

answer
113

Views

How can I alter user roles in Azure SQL Database?

I have got myself into a little bit of a bind, using SQL Server Management Studio to create a database in Azure SQL. My issue appears to be with assigning roles to users in the database. When I created the database, it prompted me to create a new login, with an associated user, that appeared to have...
Dwayne Thomson
1

votes
0

answer
61

Views

Structure Dynamic TestCafe runs

I'm trying to test that multiple types of users (separated out into roles) can log in and view a listing page and each applicable type of filter. Since it's redundant to write this N times for every user compounded by every filter I'm using the following: export const filters = { typeOne: { 'Alerts'...
Fluidbyte

View additional questions