How to force Tomcat to serialize UserPrincipal so that the user is kept loggedin when Tomcat has restarted? Right now the user has to login again everytime.
I have a Rails app on a subdomain - xyz.domain.com, and a PHP app on another subdomain - abc.domain.com
When a user is logged into the Rails app, I would like to give them a session so that I can log certain events about that user in the PHP app but in the same database of the Rails app. I would essentially just expose an API that requires authentication.
What is the best way to go about this? I am not storing the session in a database
I'm trying to load some dynamic content after the user has loggedin, using $.ajax, like so:
$.ajax({
url: "functions.php",
type: "GET",
data: login_info,
datatype: 'html',
async: false,
success: function (response) {
$('#main').html(response);
}
});
The problem is, that some events don't work, when loaded this way. I fixed the buttons with the .live() method, but a sortable list for example, doesn't work. How can I somehow refresh the DOM, and let jquery know of these new added elements?
Thanks!
When the browser closes, I want the session to end = logged out.
The FormAuthenticationTicket class doesnt' have a overload that is suitable for me.
I don't want to set the expires property, so when the user closes the browser it logs him out.
But I need: version, Name, UserData
So I guess I have to create my own cookie?
is there a way to create a custom cookie, but still uses forms authentication to encrypt and decrypt things?
I have a Rails forum product that resides under the subdomains of my customers (i.e. http://forum.customer.com). Their main site has a CMS and an authentication system, and my forum product has a separate authentication system. Is there an elegant way to have "cross-signins" across these systems? I want someone already logged into the main CMS to seamlessly (as possible) transition into my product.
I have installed mysql and then mysql-server. Then i start the mysql demon and follow below steps,
# chkconfig --level 2345 mysqld on
# mysqladmin -u root password testpassword
But i can not set the password because it gives me the below error,
Access denied for user root@localhost (using password: no)
I loggedin as root user and perform those steps.
I even uninstalled mysql server and reinstalled but same problem occurred.
I'm currently developing an Custom Application using the IP.Board framework, which is in PHP, which by default, creates a IPSMember object for the logged-in user. However, I'm developing an additional class, basically
class SpecialUser extends IPSMember
Is there a way to get the parent object, which is IPSMember to change to SpecialUser?
Hi guys,
I am using Asp.net menu control for the web site that I am currently building and I am thinking to change to work with jQuery menu. So the current menu (Asp.net menu control) works with asp.net membership as many of knew.And the menu changed based on the role of the user who loggedin. Is it possible to change the menu control to jQuery menu,with out affecting the membership functionality ?
I am in the middle of building a site with user submitted posts that let the user upload a zip file along with images. At the moment I am using TDO-Miniforms and wordpress 2.9.2, but TDO-miniforms has stopped development and is broken with wordpress 3.0 that just came out. I would like to update the site to 3.0 but I don't know of any alternatives to TDO-miniforms that let loggedin users submit posts with attachments and images.
Any alternatives?
Is there a way of sending notification about new wordpress-based blog to facebook account?
Or maybe a plugin for wordpress?
Restriction is that user shouldn't be logged into facebook, just specify facebook credentials to the plugin.
Hi everybody,
I have built a secured login backend that controls if a user is loggedin or not. If not, the user is redirected to a login page.
I would like to make a PHP function that iterates through a number of set url:s (array with url:s) to see if they are redirected or not. How could this be done?
Thanks
I am retrieving a WindowsIdentity object by calling:
win_id = System.Security.Principal.WindowsIdentity.GetCurrent();
with the intention of getting the currently logged on user name, which works fine.
WindowsIdentity implements IDisposable, but since I din't create the object myself, do I still need to call .Dispose() on it when I am finished with it or not?
Thanks.
Hello Folks,
I am trying to develop a application where
The user 'X' has logged into Facebook
app has a set of email addresses (possible friends of user 'X')
app gets the list of friends of user 'X' (uids)
Want to check if user with email address [email protected] is a valid facebook user by using email address and is user X's friend (basically a uid to email mapping)
Thanks!
Hi,
I am using mysql database for my asp.net website.I need to implement to single sign on for multiple instances of my website.Currently to check if a user has loggedin I am using a user control which checks for a "loggedin" cookie with single instance of the website.Now I need to extend the logic to achieve single signon for multiple instances of the same site.
Could someone please help.
Thanks.
I have daemon script written in Perl that checks a database tables for rows, pulls them in one by one, sends the contents via HTTP post to another service, then logs the result and repeats (only a single child). When there are rows present, the first one is posted and logged immediately, but every subsequent one is delayed for around 20 seconds. There are no sleep()'s running, and I can't find any other obvious delays. Any ideas?
Hi there!
I´m building a website and i need to store somehow some informations that i will use in the whole site depending of the user type loggedin.
Example:
1) User XPTO logs in
2) Query DataBase to see where he belongs
3) Store those 2 or 3 fields that i will get in Database in a persistent way to use it in the whole site.
My question is: Whats the best practices to do this?
Best Regards
The IP addresses loggedin by the Drupal 6 core "Statistics" module are not being displayed by the AW statistics displayed by my hosting server (hostgator). I am not able to comprehend why and which statistics are more reliable ? Also I would request some light to be shed on the best practices to monitor a Drupal 6 website. Thanks for your help people.
Hi I am little new to SharePoint. Here is my question
How can we make different views for administrator VS loggedin user. For instance I need to display the
quicklaunch only to admin and not for user. And user should not see site actions tab.
How can we set this. Please can anyone come up with solution or any blog that we can refer?
Thanks in advance.
I want to password protect a webpage in Wicket so the user may only access it if he/she has loggedin.
I'd also like the page to show the login page, and then after logging in the original page the user was trying to get to.
How is this done with wicket? I've already created a login page and extended the session class.
I would like to get the Employee-ID for the currently loggedin user. Is that easily available in some .Net class or do I need to do some sort of LDAP query?
Any tips welcome
I use phpmyadmin to create mysql database. And I have set the auth type to cookie in the config.inc.php.
How do I change the time limit so that even if I loggedin I stayed idle for hours it won't require me to log in again.
I want to create service that let you login only with password.
You type a password and if this password exists - you are loggedin and if it's not - username is generated and password is encrypted.
I'm having some misunderstandings and hope someone would help me to show where I'm mistaken.
I guess, it would look somewhat like this in agularjs
First we receive a password in login controller.
$scope.signup = function() {
var user = {
password: $scope.password,
};
$http.post('/auth/signup', user);
};
Send it via http.post and get in in our node server file.
We are provided with a compare password bcrypt function
userSchema.methods.comparePassword = function(candidatePassword, cb) {
bcrypt.compare(candidatePassword, this.password, function(err, isMatch) {
if (err) return cb(err);
cb(null, isMatch);
});
};
So right now we are creating function to catch our http request
app.post('/auth/signup', function(req, res, next) {
Inside we use a compair password function to realize if such password exists or not yet. So we have to encrypt a password with bcrypt to make a comparison
First we hash it same way as in .pre
var encPass;
bcrypt.genSalt(10, function(err, salt) {
if (err) return next(err);
bcrypt.hash(req.body.password, salt, function(err, hash) {
if (err) return next(err);
encPass=hash;
)};
)};
We have encrypted password stored in encPass so now we follow to finding a user in database with this password
User.findOne({ password: encPass }, function(err, user) {
if (user) {
//user exists, it means we should pass an ID of this user to a controller to display it in a view. I don't know how.
res.send({user.name}) //like this? How should controller receive this? With $http.post?
} else {
and now if user doesn't exist - we should create it with user ID generated by my function
var nUser = new User({
name: generId(),
password: req.body.password
});
nUser.save(function(err) {
if (err) return next(err);
)};
)};
)};
Am I doing anything right? I'm pretty new to js and angular. If so - how do I throw a username back at controller?
If someone is interested - this service exists for 100+ symbol passphrases so possibility of entering same passphrase as someone else is miserable.
And yeah, If someone loggedin under 123 password - the other guy will log in as same user if he entered 123 password, but hey, you are warned to make a big passphrase.
So I'm confident about the idea and I only need a help with understanding and realization.
I am using the Logging Application Block (of Microsoft Enterprise Library 5.0) to log exceptions in the Event Viewer that occur in my WPF XBAP application.
However, exceptions are only being logged if the application is run on my machine (the machine it was built on). Any other machine it doesn't log anything.
I've tried to find a reason why this might be occurring - I've tried setting requirePermission to false - but to no avail.
Anyone any ideas on why this might be happening?
How can I audit a web application specifically database changes, when the application is connecting to the database as a system account?
I would like to use a simple database trigger to write to an audit table but I am unsure of how I would be able to add the user that is logged on instead of the account that is actually doing the work.
I have read a few articles on identity flow but I do not fully understand the concept.