Protect / Authorize urls.

N

Nixon

Hi there, in my application i have the need to protect certain urls,
urls that the user first must make a payment to view or invoke, e.g
urls for downloading video clips. If a user hasnt paid i willl redirect
the client to a payment system that in the end will return the user
back to the orignal url. If i then find a token in the url the user
should be given access.

I want to put this access logic outside my "view" code, the aspx pages,
to keep things clean and reusable.
First i looked at .net HTTPModules and HTTPhandlers but this seems not
to be any good. Modules are invoked for each request to my server and i
cant configure to just be invoked for certain URLs. I then looked at
the HTTP Handlers but this also doesnt seem to be what i should use.
Using http handlers i should use custom file extension which is not
desirable in our case.

I then looked yesterday at the asp.net authorization / authentication
framework. Could this do the trick?
Is it possilbe to have a authorization module that makes above
requirements a reality. What I cant figure out is how to tweak the
login functionlity. IN my case I have no need to do a classic "login",
i just want to make sure that the user has paid. So..whats your
opinion, what solution should i go for?
Any suggestions is welcome!!

Nic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top