Web dev - user authentication

How to create a login and logout page in webdev module

What do you want to do exactly ?
There's already a built in login screen with perspective.

I develop page through webÐev module using html, CSS and JS.
I call the webpage in perspective as iframe. Using project properties I create a login for the page
for the first time login user .
how to implement a logout and login what login user and password i apply that user will show

only take a login user if change a login user not change because the section refresh.

But... why ? what are you trying to solve ?
You're only reinventing the wheel there, all of that is already handled by perspective !

You are reinventing the wheel

without perspective using webdev module how to implement login? is it possible?

Well, you can look up on the internet how authentication is handled, but really it's a complex subject and you WILL NOT implement a better solution than the built-in one.
So just use perspective and its authentication system, unless you have a VERY good reason not to, but I asked twice already and you apparently can't come up with a reasonable answer.
Don't reimplement yourself what's already there.

3 Likes

can you tell me using perspective how do login ?

It's built-in, there's nothing to do except enable it:

Obviously you'll also need a user source so users can actually authenticate...

You need to read the doc / watch the university videos.

1 Like

Thank you for the solution

WebDev is typically used to expose Ignition data to outside consumers/publishers via HTTP GET/POST requests, without any visualization aspect.
See this section in the docs with insight as to handling security within WebDev:
WebDev: Security Settings
Are you able to share your original objective?

2 Likes

I developed a page using HTML in the Web Dev module. To open that page, login is required. In Perspective, I added the page link inside an i frame and enabled authentication in the properties. How can I implement a logout function? Once a user logs in, that user remains in the session and I can’t log out. How can I log out and log in with another user ID?

I suggest you rework your page to NOT use webdev, unless absolutely necessary. Perspective is the module that handles building web pages.

And I'll repeat: watch the Inductive University videos, and USE THE DOC:

I do not disagree with you, but I believe that if IA designed the module with that intention, naming it "webdev" was a poor decision. For better or for worse, what @ragha0211 did was webdev. I wouldn't blame anyone for believing that was the intended use of the module, especially given that Perspective provides no "correct" way to introduce your own HTML short of developing a Perspective-targeting module, which is not something the core customer base is expected to even consider doing.

WebDev is a perfectly appropriate name for a module that is intended to support web APIs.

The whole point of Perspective is to make it easy for non-web developers to make real-time graphics and user interfaces. IA chooses not to offer direct HTML delivery (or JS) in their React-based solution. (Because that leads to a support $$ nightmare.)

2 Likes

I'd blame someone for not reading the docs about what the platform and its modules were designed for before jumping in head first.